$(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: [[1191196800000,5.07038],[1191283200000,5.08214],[1191369600000,5.06538],[1191456000000,5.07287],[1191542400000,5.05968],[1191628800000,5.11843],[1191715200000,5.11843],[1191801600000,5.11843],[1191888000000,5.13233],[1191974400000,5.11117],[1192060800000,5.14678],[1192147200000,5.1683],[1192233600000,5.16218],[1192320000000,5.16218],[1192406400000,5.16218],[1192492800000,5.19272],[1192579200000,5.14898],[1192665600000,5.17015],[1192752000000,5.17634],[1192838400000,5.22517],[1192924800000,5.22517],[1193011200000,5.22517],[1193097600000,5.15926],[1193184000000,5.2412],[1193270400000,5.20849],[1193356800000,5.24196],[1193443200000,5.25229],[1193529600000,5.25229],[1193616000000,5.25229],[1193702400000,5.25789],[1193788800000,5.2863]], 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: [[1191196800000, 5.070383],[1191196800000, 5.070383],[1191283200000, 5.082138],[1191369600000, 5.065377],[1191456000000, 5.072872],[1191542400000, 5.059683],[1191628800000, 5.118434],[1191715200000, 5.118434],[1191801600000, 5.118434],[1191888000000, 5.132327],[1191974400000, 5.111172],[1192060800000, 5.146780],[1192147200000, 5.168297],[1192233600000, 5.162182],[1192320000000, 5.162182],[1192406400000, 5.162182],[1192492800000, 5.192721],[1192579200000, 5.148977],[1192665600000, 5.170151],[1192752000000, 5.176341],[1192838400000, 5.225172],[1192924800000, 5.225172],[1193011200000, 5.225172],[1193097600000, 5.159260],[1193184000000, 5.241204],[1193270400000, 5.208487],[1193356800000, 5.241962],[1193443200000, 5.252292],[1193529600000, 5.252292],[1193616000000, 5.252292],[1193702400000, 5.257890],[1193788800000, 5.286300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });