$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1559347200000,36.9955],[1559433600000,36.9955],[1559520000000,36.9955],[1559606400000,37.2113],[1559692800000,37.6563],[1559779200000,37.2744],[1559865600000,37.0534],[1559952000000,36.7929],[1560038400000,36.7929],[1560124800000,36.7929],[1560211200000,36.52],[1560297600000,36.4394],[1560384000000,36.6011],[1560470400000,36.5696],[1560556800000,36.5504],[1560643200000,36.5504],[1560729600000,36.5504],[1560816000000,36.5504],[1560902400000,36.4169],[1560988800000,36.3709],[1561075200000,36.5966],[1561161600000,36.4398],[1561248000000,36.4398],[1561334400000,36.4398],[1561420800000,36.4427],[1561507200000,36.4473],[1561593600000,36.3616],[1561680000000,36.3904],[1561766400000,36.3904],[1561852800000,36.3904]], 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: [[1559347200000, 36.995543],[1559347200000, 36.995543],[1559433600000, 36.995543],[1559520000000, 36.995543],[1559606400000, 37.211314],[1559692800000, 37.656291],[1559779200000, 37.274369],[1559865600000, 37.053403],[1559952000000, 36.792863],[1560038400000, 36.792863],[1560124800000, 36.792863],[1560211200000, 36.519980],[1560297600000, 36.439422],[1560384000000, 36.601126],[1560470400000, 36.569557],[1560556800000, 36.550386],[1560643200000, 36.550386],[1560729600000, 36.550386],[1560816000000, 36.550386],[1560902400000, 36.416868],[1560988800000, 36.370921],[1561075200000, 36.596565],[1561161600000, 36.439784],[1561248000000, 36.439784],[1561334400000, 36.439784],[1561420800000, 36.442670],[1561507200000, 36.447291],[1561593600000, 36.361641],[1561680000000, 36.390444],[1561766400000, 36.390444],[1561852800000, 36.390444]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });