$(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: [[1554076800000,4.09492],[1554163200000,4.09315],[1554249600000,4.04724],[1554336000000,4.07906],[1554422400000,4.06169],[1554508800000,4.02825],[1554595200000,4.02825],[1554681600000,4.02825],[1554768000000,4.01388],[1554854400000,4.03285],[1554940800000,4.0439],[1555027200000,4.04872],[1555113600000,4.05166],[1555200000000,4.05166],[1555286400000,4.05166],[1555372800000,4.06361],[1555459200000,4.04726],[1555545600000,4.04003],[1555632000000,4.04382],[1555718400000,4.04628],[1555804800000,4.04628],[1555891200000,4.04628],[1555977600000,4.03443],[1556064000000,4.0197],[1556150400000,3.99237],[1556236800000,3.96564],[1556323200000,3.95081],[1556409600000,3.95081],[1556496000000,3.95081],[1556582400000,3.95081]], 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: [[1554076800000, 4.094924],[1554076800000, 4.094924],[1554163200000, 4.093147],[1554249600000, 4.047244],[1554336000000, 4.079057],[1554422400000, 4.061686],[1554508800000, 4.028252],[1554595200000, 4.028252],[1554681600000, 4.028252],[1554768000000, 4.013878],[1554854400000, 4.032845],[1554940800000, 4.043897],[1555027200000, 4.048723],[1555113600000, 4.051656],[1555200000000, 4.051656],[1555286400000, 4.051656],[1555372800000, 4.063611],[1555459200000, 4.047257],[1555545600000, 4.040030],[1555632000000, 4.043818],[1555718400000, 4.046277],[1555804800000, 4.046277],[1555891200000, 4.046277],[1555977600000, 4.034434],[1556064000000, 4.019698],[1556150400000, 3.992371],[1556236800000, 3.965643],[1556323200000, 3.950808],[1556409600000, 3.950808],[1556496000000, 3.950808],[1556582400000, 3.950808]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });