$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1527811200000,0.079315],[1527897600000,0.078947],[1527984000000,0.078947],[1528070400000,0.078947],[1528156800000,0.079016],[1528243200000,0.079043],[1528329600000,0.078843],[1528416000000,0.078575],[1528502400000,0.078248],[1528588800000,0.078248],[1528675200000,0.078248],[1528761600000,0.078165],[1528848000000,0.07799],[1528934400000,0.077827],[1529020800000,0.078037],[1529107200000,0.078229],[1529193600000,0.078229],[1529280000000,0.078229],[1529366400000,0.077717],[1529452800000,0.077795],[1529539200000,null],[1529625600000,0.077101],[1529712000000,0.077112],[1529798400000,0.077112],[1529884800000,0.077112],[1529971200000,0.077095],[1530057600000,0.077291],[1530144000000,0.077334],[1530230400000,0.077334],[1530316800000,0.077334]], 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: [[1527811200000, 0.079315],[1527811200000, 0.079315],[1527897600000, 0.078947],[1527984000000, 0.078947],[1528070400000, 0.078947],[1528156800000, 0.079016],[1528243200000, 0.079043],[1528329600000, 0.078843],[1528416000000, 0.078575],[1528502400000, 0.078248],[1528588800000, 0.078248],[1528675200000, 0.078248],[1528761600000, 0.078165],[1528848000000, 0.077990],[1528934400000, 0.077827],[1529020800000, 0.078037],[1529107200000, 0.078229],[1529193600000, 0.078229],[1529280000000, 0.078229],[1529366400000, 0.077717],[1529452800000, 0.077795],[1529625600000, 0.077101],[1529712000000, 0.077112],[1529798400000, 0.077112],[1529884800000, 0.077112],[1529971200000, 0.077095],[1530057600000, 0.077291],[1530144000000, 0.077334],[1530230400000, 0.077334],[1530316800000, 0.077334]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });