$(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: [[1162339200000,4.47385],[1162425600000,4.45186],[1162512000000,4.44981],[1162598400000,4.47424],[1162684800000,4.47424],[1162771200000,4.47424],[1162857600000,4.44896],[1162944000000,4.47777],[1163030400000,4.46559],[1163116800000,4.45992],[1163203200000,4.47066],[1163289600000,4.47066],[1163376000000,4.47066],[1163462400000,4.4463],[1163548800000,4.43509],[1163635200000,4.43313],[1163721600000,4.43729],[1163808000000,4.40302],[1163894400000,4.40302],[1163980800000,4.40302],[1164067200000,4.41858],[1164153600000,4.40929],[1164240000000,4.43104],[1164326400000,4.42905],[1164412800000,4.45731],[1164499200000,4.45731],[1164585600000,4.45731],[1164672000000,4.45484],[1164758400000,4.46695],[1164844800000,4.44345]], 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: [[1162339200000, 4.473854],[1162339200000, 4.473854],[1162425600000, 4.451859],[1162512000000, 4.449814],[1162598400000, 4.474240],[1162684800000, 4.474240],[1162771200000, 4.474240],[1162857600000, 4.448960],[1162944000000, 4.477772],[1163030400000, 4.465587],[1163116800000, 4.459921],[1163203200000, 4.470663],[1163289600000, 4.470663],[1163376000000, 4.470663],[1163462400000, 4.446301],[1163548800000, 4.435091],[1163635200000, 4.433132],[1163721600000, 4.437291],[1163808000000, 4.403024],[1163894400000, 4.403024],[1163980800000, 4.403024],[1164067200000, 4.418578],[1164153600000, 4.409287],[1164240000000, 4.431043],[1164326400000, 4.429051],[1164412800000, 4.457306],[1164499200000, 4.457306],[1164585600000, 4.457306],[1164672000000, 4.454843],[1164758400000, 4.466955],[1164844800000, 4.443446]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });