$(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: [[1554076800000,1.18477],[1554163200000,1.18459],[1554249600000,1.17311],[1554336000000,1.18362],[1554422400000,1.17993],[1554508800000,1.17399],[1554595200000,1.17399],[1554681600000,1.17399],[1554768000000,1.16892],[1554854400000,1.17516],[1554940800000,1.17887],[1555027200000,1.18031],[1555113600000,1.1803],[1555200000000,1.1803],[1555286400000,1.1803],[1555372800000,1.18362],[1555459200000,1.17716],[1555545600000,1.17549],[1555632000000,1.17562],[1555718400000,1.17634],[1555804800000,1.17634],[1555891200000,1.17634],[1555977600000,1.1729],[1556064000000,1.16578],[1556150400000,1.15859],[1556236800000,1.15043],[1556323200000,1.14742],[1556409600000,1.14742],[1556496000000,1.14742],[1556582400000,1.14742]], 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, 1.184770],[1554076800000, 1.184770],[1554163200000, 1.184586],[1554249600000, 1.173108],[1554336000000, 1.183615],[1554422400000, 1.179933],[1554508800000, 1.173985],[1554595200000, 1.173985],[1554681600000, 1.173985],[1554768000000, 1.168916],[1554854400000, 1.175158],[1554940800000, 1.178870],[1555027200000, 1.180306],[1555113600000, 1.180298],[1555200000000, 1.180298],[1555286400000, 1.180298],[1555372800000, 1.183625],[1555459200000, 1.177163],[1555545600000, 1.175493],[1555632000000, 1.175623],[1555718400000, 1.176338],[1555804800000, 1.176338],[1555891200000, 1.176338],[1555977600000, 1.172895],[1556064000000, 1.165780],[1556150400000, 1.158593],[1556236800000, 1.150432],[1556323200000, 1.147417],[1556409600000, 1.147417],[1556496000000, 1.147417],[1556582400000, 1.147417]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });