$(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: [[1556668800000,0.236998],[1556755200000,0.236998],[1556841600000,0.238189],[1556928000000,0.237451],[1557014400000,0.237451],[1557100800000,0.237451],[1557187200000,0.239046],[1557273600000,0.23811],[1557360000000,0.238462],[1557446400000,0.238462],[1557532800000,0.238777],[1557619200000,0.238777],[1557705600000,0.238777],[1557792000000,0.238618],[1557878400000,0.238784],[1557964800000,0.24128],[1558051200000,0.240306],[1558137600000,0.240792],[1558224000000,0.240792],[1558310400000,0.240792],[1558396800000,0.238532],[1558483200000,0.236425],[1558569600000,0.238379],[1558656000000,0.239355],[1558742400000,0.241557],[1558828800000,0.241557],[1558915200000,0.241557],[1559001600000,0.240531],[1559088000000,0.241354],[1559174400000,0.24418],[1559260800000,0.245044]], 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.236998],[1556668800000, 0.236998],[1556755200000, 0.236998],[1556841600000, 0.238189],[1556928000000, 0.237451],[1557014400000, 0.237451],[1557100800000, 0.237451],[1557187200000, 0.239046],[1557273600000, 0.238110],[1557360000000, 0.238462],[1557446400000, 0.238462],[1557532800000, 0.238777],[1557619200000, 0.238777],[1557705600000, 0.238777],[1557792000000, 0.238618],[1557878400000, 0.238784],[1557964800000, 0.241280],[1558051200000, 0.240306],[1558137600000, 0.240792],[1558224000000, 0.240792],[1558310400000, 0.240792],[1558396800000, 0.238532],[1558483200000, 0.236425],[1558569600000, 0.238379],[1558656000000, 0.239355],[1558742400000, 0.241557],[1558828800000, 0.241557],[1558915200000, 0.241557],[1559001600000, 0.240531],[1559088000000, 0.241354],[1559174400000, 0.244180],[1559260800000, 0.245044]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });