$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1527811200000,0.24001],[1527897600000,0.23855],[1527984000000,0.23855],[1528070400000,0.23855],[1528156800000,0.238805],[1528243200000,0.238424],[1528329600000,0.237555],[1528416000000,0.237808],[1528502400000,0.238812],[1528588800000,0.238812],[1528675200000,0.238812],[1528761600000,0.237322],[1528848000000,0.236499],[1528934400000,0.23635],[1529020800000,0.238139],[1529107200000,0.237826],[1529193600000,0.237826],[1529280000000,0.237826],[1529366400000,0.238371],[1529452800000,0.2406],[1529539200000,null],[1529625600000,0.23788],[1529712000000,0.238216],[1529798400000,0.238216],[1529884800000,0.238216],[1529971200000,0.238851],[1530057600000,0.238906],[1530144000000,0.238773],[1530230400000,0.238773],[1530316800000,0.238773]], 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.240010],[1527811200000, 0.240010],[1527897600000, 0.238550],[1527984000000, 0.238550],[1528070400000, 0.238550],[1528156800000, 0.238805],[1528243200000, 0.238424],[1528329600000, 0.237555],[1528416000000, 0.237808],[1528502400000, 0.238812],[1528588800000, 0.238812],[1528675200000, 0.238812],[1528761600000, 0.237322],[1528848000000, 0.236499],[1528934400000, 0.236350],[1529020800000, 0.238139],[1529107200000, 0.237826],[1529193600000, 0.237826],[1529280000000, 0.237826],[1529366400000, 0.238371],[1529452800000, 0.240600],[1529625600000, 0.237880],[1529712000000, 0.238216],[1529798400000, 0.238216],[1529884800000, 0.238216],[1529971200000, 0.238851],[1530057600000, 0.238906],[1530144000000, 0.238773],[1530230400000, 0.238773],[1530316800000, 0.238773]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });