$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс CAD, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс CAD', data: [[1214870400000,4.8177],[1214956800000,4.76236],[1215043200000,4.74856],[1215129600000,4.77999],[1215216000000,4.76141],[1215302400000,4.76141],[1215388800000,4.76141],[1215475200000,4.73808],[1215561600000,4.75403],[1215648000000,4.76947],[1215734400000,4.78986],[1215820800000,4.76536],[1215907200000,4.76536],[1215993600000,4.76536],[1216080000000,4.7965],[1216166400000,4.84343],[1216252800000,4.83107],[1216339200000,4.83694],[1216425600000,4.81413],[1216512000000,4.81413],[1216598400000,4.81413],[1216684800000,4.82085],[1216771200000,4.83271],[1216857600000,4.80166],[1216944000000,4.79539],[1217030400000,4.77183],[1217116800000,4.77183],[1217203200000,4.77183],[1217289600000,4.74083],[1217376000000,4.72976],[1217462400000,4.73693]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1214870400000, 4.817696],[1214870400000, 4.817696],[1214956800000, 4.762355],[1215043200000, 4.748556],[1215129600000, 4.779988],[1215216000000, 4.761407],[1215302400000, 4.761407],[1215388800000, 4.761407],[1215475200000, 4.738079],[1215561600000, 4.754026],[1215648000000, 4.769468],[1215734400000, 4.789862],[1215820800000, 4.765361],[1215907200000, 4.765361],[1215993600000, 4.765361],[1216080000000, 4.796504],[1216166400000, 4.843432],[1216252800000, 4.831070],[1216339200000, 4.836943],[1216425600000, 4.814127],[1216512000000, 4.814127],[1216598400000, 4.814127],[1216684800000, 4.820848],[1216771200000, 4.832714],[1216857600000, 4.801655],[1216944000000, 4.795388],[1217030400000, 4.771832],[1217116800000, 4.771832],[1217203200000, 4.771832],[1217289600000, 4.740831],[1217376000000, 4.729756],[1217462400000, 4.736925]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });