$(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: [[1554076800000,0.071595],[1554163200000,0.071564],[1554249600000,0.071048],[1554336000000,0.071424],[1554422400000,0.071432],[1554508800000,0.070474],[1554595200000,0.070474],[1554681600000,0.070474],[1554768000000,0.070015],[1554854400000,0.070295],[1554940800000,0.070559],[1555027200000,0.07099],[1555113600000,0.070376],[1555200000000,0.070376],[1555286400000,0.070376],[1555372800000,0.070635],[1555459200000,0.070329],[1555545600000,0.070349],[1555632000000,0.070776],[1555718400000,0.070801],[1555804800000,0.070801],[1555891200000,0.070801],[1555977600000,0.071001],[1556064000000,0.070729],[1556150400000,0.070251],[1556236800000,0.070077],[1556323200000,0.069555],[1556409600000,0.069555],[1556496000000,0.069555],[1556582400000,0.069555]], 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: [[1554076800000, 0.071595],[1554076800000, 0.071595],[1554163200000, 0.071564],[1554249600000, 0.071048],[1554336000000, 0.071424],[1554422400000, 0.071432],[1554508800000, 0.070474],[1554595200000, 0.070474],[1554681600000, 0.070474],[1554768000000, 0.070015],[1554854400000, 0.070295],[1554940800000, 0.070559],[1555027200000, 0.070990],[1555113600000, 0.070376],[1555200000000, 0.070376],[1555286400000, 0.070376],[1555372800000, 0.070635],[1555459200000, 0.070329],[1555545600000, 0.070349],[1555632000000, 0.070776],[1555718400000, 0.070801],[1555804800000, 0.070801],[1555891200000, 0.070801],[1555977600000, 0.071001],[1556064000000, 0.070729],[1556150400000, 0.070251],[1556236800000, 0.070077],[1556323200000, 0.069555],[1556409600000, 0.069555],[1556496000000, 0.069555],[1556582400000, 0.069555]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });