$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1559347200000,1.15997],[1559433600000,1.15997],[1559520000000,1.15997],[1559606400000,1.16712],[1559692800000,1.1883],[1559779200000,1.18156],[1559865600000,1.1763],[1559952000000,1.16923],[1560038400000,1.16923],[1560124800000,1.16923],[1560211200000,1.16313],[1560297600000,1.16109],[1560384000000,1.16713],[1560470400000,1.1658],[1560556800000,1.1654],[1560643200000,1.1654],[1560729600000,1.1654],[1560816000000,1.1654],[1560902400000,1.15275],[1560988800000,1.15127],[1561075200000,1.1641],[1561161600000,1.16065],[1561248000000,1.16065],[1561334400000,1.16065],[1561420800000,1.16567],[1561507200000,1.16705],[1561593600000,1.16653],[1561680000000,1.17026],[1561766400000,1.17026],[1561852800000,1.17026]], 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, 1.159966],[1559347200000, 1.159966],[1559433600000, 1.159966],[1559520000000, 1.159966],[1559606400000, 1.167118],[1559692800000, 1.188295],[1559779200000, 1.181557],[1559865600000, 1.176299],[1559952000000, 1.169228],[1560038400000, 1.169228],[1560124800000, 1.169228],[1560211200000, 1.163132],[1560297600000, 1.161092],[1560384000000, 1.167130],[1560470400000, 1.165797],[1560556800000, 1.165400],[1560643200000, 1.165400],[1560729600000, 1.165400],[1560816000000, 1.165400],[1560902400000, 1.152748],[1560988800000, 1.151270],[1561075200000, 1.164105],[1561161600000, 1.160650],[1561248000000, 1.160650],[1561334400000, 1.160650],[1561420800000, 1.165668],[1561507200000, 1.167052],[1561593600000, 1.166532],[1561680000000, 1.170257],[1561766400000, 1.170257],[1561852800000, 1.170257]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });