$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1559347200000,3.05833],[1559433600000,3.05833],[1559520000000,3.05833],[1559606400000,3.08341],[1559692800000,3.12604],[1559779200000,3.10168],[1559865600000,3.07774],[1559952000000,3.06048],[1560038400000,3.06048],[1560124800000,3.06048],[1560211200000,3.04744],[1560297600000,3.04712],[1560384000000,3.05611],[1560470400000,3.0518],[1560556800000,3.04563],[1560643200000,3.04563],[1560729600000,3.04563],[1560816000000,3.04563],[1560902400000,3.01863],[1560988800000,3.01721],[1561075200000,3.0848],[1561161600000,3.06866],[1561248000000,3.06866],[1561334400000,3.06866],[1561420800000,3.08789],[1561507200000,3.07948],[1561593600000,3.07343],[1561680000000,3.07346],[1561766400000,3.07346],[1561852800000,3.07346]], 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, 3.058333],[1559347200000, 3.058333],[1559433600000, 3.058333],[1559520000000, 3.058333],[1559606400000, 3.083412],[1559692800000, 3.126045],[1559779200000, 3.101681],[1559865600000, 3.077735],[1559952000000, 3.060478],[1560038400000, 3.060478],[1560124800000, 3.060478],[1560211200000, 3.047441],[1560297600000, 3.047125],[1560384000000, 3.056110],[1560470400000, 3.051805],[1560556800000, 3.045629],[1560643200000, 3.045629],[1560729600000, 3.045629],[1560816000000, 3.045629],[1560902400000, 3.018634],[1560988800000, 3.017206],[1561075200000, 3.084797],[1561161600000, 3.068664],[1561248000000, 3.068664],[1561334400000, 3.068664],[1561420800000, 3.087886],[1561507200000, 3.079483],[1561593600000, 3.073433],[1561680000000, 3.073461],[1561766400000, 3.073461],[1561852800000, 3.073461]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });