$(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: [[1556668800000,1.14742],[1556755200000,1.14742],[1556841600000,1.16095],[1556928000000,1.14884],[1557014400000,1.14884],[1557100800000,1.14884],[1557187200000,1.15391],[1557273600000,1.14497],[1557360000000,1.14295],[1557446400000,1.14295],[1557532800000,1.14368],[1557619200000,1.14368],[1557705600000,1.14368],[1557792000000,1.13921],[1557878400000,1.14055],[1557964800000,1.14496],[1558051200000,1.1485],[1558137600000,1.14389],[1558224000000,1.14389],[1558310400000,1.14389],[1558396800000,1.13563],[1558483200000,1.13071],[1558569600000,1.13926],[1558656000000,1.1361],[1558742400000,1.14663],[1558828800000,1.14663],[1558915200000,1.14663],[1559001600000,1.14111],[1559088000000,1.14359],[1559174400000,1.15108],[1559260800000,1.15785]], 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: [[1556668800000, 1.147417],[1556668800000, 1.147417],[1556755200000, 1.147417],[1556841600000, 1.160947],[1556928000000, 1.148839],[1557014400000, 1.148839],[1557100800000, 1.148839],[1557187200000, 1.153909],[1557273600000, 1.144973],[1557360000000, 1.142953],[1557446400000, 1.142953],[1557532800000, 1.143681],[1557619200000, 1.143681],[1557705600000, 1.143681],[1557792000000, 1.139211],[1557878400000, 1.140555],[1557964800000, 1.144957],[1558051200000, 1.148504],[1558137600000, 1.143888],[1558224000000, 1.143888],[1558310400000, 1.143888],[1558396800000, 1.135635],[1558483200000, 1.130712],[1558569600000, 1.139262],[1558656000000, 1.136105],[1558742400000, 1.146625],[1558828800000, 1.146625],[1558915200000, 1.146625],[1559001600000, 1.141112],[1559088000000, 1.143589],[1559174400000, 1.151076],[1559260800000, 1.157847]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });