$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1446336000000,0.081743],[1446422400000,0.081743],[1446508800000,0.08133],[1446595200000,0.080599],[1446681600000,0.080148],[1446768000000,0.079466],[1446854400000,0.078357],[1446940800000,0.078357],[1447027200000,0.078357],[1447113600000,0.077982],[1447200000000,0.077967],[1447286400000,0.078237],[1447372800000,0.078722],[1447459200000,0.079498],[1447545600000,0.079498],[1447632000000,0.079498],[1447718400000,0.079785],[1447804800000,0.081388],[1447891200000,0.082029],[1447977600000,0.082115],[1448064000000,0.082703],[1448150400000,0.082703],[1448236800000,0.082703],[1448323200000,0.082223],[1448409600000,0.081786],[1448496000000,0.080627],[1448582400000,0.080192],[1448668800000,0.080973],[1448755200000,0.080973],[1448841600000,0.080973]], 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: [[1446336000000, 0.081743],[1446336000000, 0.081743],[1446422400000, 0.081743],[1446508800000, 0.081330],[1446595200000, 0.080599],[1446681600000, 0.080148],[1446768000000, 0.079466],[1446854400000, 0.078357],[1446940800000, 0.078357],[1447027200000, 0.078357],[1447113600000, 0.077982],[1447200000000, 0.077967],[1447286400000, 0.078237],[1447372800000, 0.078722],[1447459200000, 0.079498],[1447545600000, 0.079498],[1447632000000, 0.079498],[1447718400000, 0.079785],[1447804800000, 0.081388],[1447891200000, 0.082029],[1447977600000, 0.082115],[1448064000000, 0.082703],[1448150400000, 0.082703],[1448236800000, 0.082703],[1448323200000, 0.082223],[1448409600000, 0.081786],[1448496000000, 0.080627],[1448582400000, 0.080192],[1448668800000, 0.080973],[1448755200000, 0.080973],[1448841600000, 0.080973]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });