$(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: [[1543622400000,0.248533],[1543708800000,0.248533],[1543795200000,0.248533],[1543881600000,0.24806],[1543968000000,0.249369],[1544054400000,0.247553],[1544140800000,0.247158],[1544227200000,0.246486],[1544313600000,0.246486],[1544400000000,0.246486],[1544486400000,0.246409],[1544572800000,0.244931],[1544659200000,0.245209],[1544745600000,0.245526],[1544832000000,0.245174],[1544918400000,0.245174],[1545004800000,0.245174],[1545091200000,0.246229],[1545177600000,0.247791],[1545264000000,0.246751],[1545350400000,0.246821],[1545436800000,0.246599],[1545523200000,0.246599],[1545609600000,0.246599],[1545696000000,0.246599],[1545782400000,0.246599],[1545868800000,0.245964],[1545955200000,0.247626],[1546041600000,0.250903],[1546128000000,0.250903],[1546214400000,0.250903]], 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: [[1543622400000, 0.248533],[1543622400000, 0.248533],[1543708800000, 0.248533],[1543795200000, 0.248533],[1543881600000, 0.248060],[1543968000000, 0.249369],[1544054400000, 0.247553],[1544140800000, 0.247158],[1544227200000, 0.246486],[1544313600000, 0.246486],[1544400000000, 0.246486],[1544486400000, 0.246409],[1544572800000, 0.244931],[1544659200000, 0.245209],[1544745600000, 0.245526],[1544832000000, 0.245174],[1544918400000, 0.245174],[1545004800000, 0.245174],[1545091200000, 0.246229],[1545177600000, 0.247791],[1545264000000, 0.246751],[1545350400000, 0.246821],[1545436800000, 0.246599],[1545523200000, 0.246599],[1545609600000, 0.246599],[1545696000000, 0.246599],[1545782400000, 0.246599],[1545868800000, 0.245964],[1545955200000, 0.247626],[1546041600000, 0.250903],[1546128000000, 0.250903],[1546214400000, 0.250903]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });