$(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: [[1556668800000,0.069555],[1556755200000,0.069555],[1556841600000,0.069724],[1556928000000,0.069326],[1557014400000,0.069326],[1557100800000,0.069326],[1557187200000,0.06962],[1557273600000,0.06921],[1557360000000,0.068982],[1557446400000,0.068982],[1557532800000,0.068867],[1557619200000,0.068867],[1557705600000,0.068867],[1557792000000,0.068822],[1557878400000,0.068904],[1557964800000,0.069469],[1558051200000,0.069517],[1558137600000,0.069586],[1558224000000,0.069586],[1558310400000,0.069586],[1558396800000,0.069155],[1558483200000,0.068922],[1558569600000,0.069404],[1558656000000,0.069669],[1558742400000,0.069788],[1558828800000,0.069788],[1558915200000,0.069788],[1559001600000,0.069304],[1559088000000,0.069435],[1559174400000,0.069909],[1559260800000,0.070463]], 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: [[1556668800000, 0.069555],[1556668800000, 0.069555],[1556755200000, 0.069555],[1556841600000, 0.069724],[1556928000000, 0.069326],[1557014400000, 0.069326],[1557100800000, 0.069326],[1557187200000, 0.069620],[1557273600000, 0.069210],[1557360000000, 0.068982],[1557446400000, 0.068982],[1557532800000, 0.068867],[1557619200000, 0.068867],[1557705600000, 0.068867],[1557792000000, 0.068822],[1557878400000, 0.068904],[1557964800000, 0.069469],[1558051200000, 0.069517],[1558137600000, 0.069586],[1558224000000, 0.069586],[1558310400000, 0.069586],[1558396800000, 0.069155],[1558483200000, 0.068922],[1558569600000, 0.069404],[1558656000000, 0.069669],[1558742400000, 0.069788],[1558828800000, 0.069788],[1558915200000, 0.069788],[1559001600000, 0.069304],[1559088000000, 0.069435],[1559174400000, 0.069909],[1559260800000, 0.070463]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });