$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1559347200000,2.81471],[1559433600000,2.81471],[1559520000000,2.81471],[1559606400000,2.83942],[1559692800000,2.87893],[1559779200000,2.85306],[1559865600000,2.84317],[1559952000000,2.81351],[1560038400000,2.81351],[1560124800000,2.81351],[1560211200000,2.79991],[1560297600000,2.78676],[1560384000000,2.79915],[1560470400000,2.78796],[1560556800000,2.79766],[1560643200000,2.79766],[1560729600000,2.79766],[1560816000000,2.79766],[1560902400000,2.77417],[1560988800000,2.76161],[1561075200000,2.8043],[1561161600000,2.79594],[1561248000000,2.79594],[1561334400000,2.79594],[1561420800000,2.81324],[1561507200000,2.83197],[1561593600000,2.81977],[1561680000000,2.82158],[1561766400000,2.82158],[1561852800000,2.82158]], 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, 2.814707],[1559347200000, 2.814707],[1559433600000, 2.814707],[1559520000000, 2.814707],[1559606400000, 2.839422],[1559692800000, 2.878927],[1559779200000, 2.853062],[1559865600000, 2.843170],[1559952000000, 2.813513],[1560038400000, 2.813513],[1560124800000, 2.813513],[1560211200000, 2.799907],[1560297600000, 2.786761],[1560384000000, 2.799145],[1560470400000, 2.787959],[1560556800000, 2.797662],[1560643200000, 2.797662],[1560729600000, 2.797662],[1560816000000, 2.797662],[1560902400000, 2.774166],[1560988800000, 2.761613],[1561075200000, 2.804303],[1561161600000, 2.795940],[1561248000000, 2.795940],[1561334400000, 2.795940],[1561420800000, 2.813237],[1561507200000, 2.831973],[1561593600000, 2.819770],[1561680000000, 2.821583],[1561766400000, 2.821583],[1561852800000, 2.821583]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });