$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1551398400000,4.10964],[1551484800000,4.09812],[1551571200000,4.09812],[1551657600000,4.09812],[1551744000000,4.07605],[1551830400000,4.06346],[1551916800000,4.01251],[1552003200000,3.98649],[1552089600000,3.98649],[1552176000000,3.98649],[1552262400000,3.98649],[1552348800000,3.96541],[1552435200000,3.98386],[1552521600000,4.04583],[1552608000000,4.04378],[1552694400000,4.09309],[1552780800000,4.09309],[1552867200000,4.09309],[1552953600000,4.12645],[1553040000000,4.13396],[1553126400000,4.13358],[1553212800000,4.15897],[1553299200000,4.08341],[1553385600000,4.08341],[1553472000000,4.08341],[1553558400000,4.07951],[1553644800000,4.08061],[1553731200000,4.08454],[1553817600000,4.09441],[1553904000000,4.09492],[1553990400000,4.09492]], 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: [[1551398400000, 4.109638],[1551398400000, 4.109638],[1551484800000, 4.098119],[1551571200000, 4.098119],[1551657600000, 4.098119],[1551744000000, 4.076051],[1551830400000, 4.063459],[1551916800000, 4.012509],[1552003200000, 3.986494],[1552089600000, 3.986494],[1552176000000, 3.986494],[1552262400000, 3.986494],[1552348800000, 3.965414],[1552435200000, 3.983860],[1552521600000, 4.045834],[1552608000000, 4.043776],[1552694400000, 4.093093],[1552780800000, 4.093093],[1552867200000, 4.093093],[1552953600000, 4.126450],[1553040000000, 4.133961],[1553126400000, 4.133578],[1553212800000, 4.158974],[1553299200000, 4.083414],[1553385600000, 4.083414],[1553472000000, 4.083414],[1553558400000, 4.079515],[1553644800000, 4.080608],[1553731200000, 4.084536],[1553817600000, 4.094414],[1553904000000, 4.094924],[1553990400000, 4.094924]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });