$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1556668800000,29.4944],[1556755200000,29.4944],[1556841600000,29.776],[1556928000000,29.539],[1557014400000,29.539],[1557100800000,29.539],[1557187200000,29.6728],[1557273600000,29.4613],[1557360000000,29.4047],[1557446400000,29.4047],[1557532800000,29.4292],[1557619200000,29.4292],[1557705600000,29.4292],[1557792000000,29.3643],[1557878400000,29.3704],[1557964800000,29.4941],[1558051200000,29.512],[1558137600000,29.4586],[1558224000000,29.4586],[1558310400000,29.4586],[1558396800000,29.2608],[1558483200000,29.1441],[1558569600000,29.385],[1558656000000,29.3354],[1558742400000,29.6173],[1558828800000,29.6173],[1558915200000,29.6173],[1559001600000,29.4795],[1559088000000,29.5538],[1559174400000,29.768],[1559260800000,29.9199]], 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, 29.494364],[1556668800000, 29.494364],[1556755200000, 29.494364],[1556841600000, 29.775980],[1556928000000, 29.538954],[1557014400000, 29.538954],[1557100800000, 29.538954],[1557187200000, 29.672781],[1557273600000, 29.461312],[1557360000000, 29.404746],[1557446400000, 29.404746],[1557532800000, 29.429211],[1557619200000, 29.429211],[1557705600000, 29.429211],[1557792000000, 29.364311],[1557878400000, 29.370443],[1557964800000, 29.494081],[1558051200000, 29.511965],[1558137600000, 29.458555],[1558224000000, 29.458555],[1558310400000, 29.458555],[1558396800000, 29.260773],[1558483200000, 29.144107],[1558569600000, 29.384978],[1558656000000, 29.335362],[1558742400000, 29.617336],[1558828800000, 29.617336],[1558915200000, 29.617336],[1559001600000, 29.479499],[1559088000000, 29.553782],[1559174400000, 29.767974],[1559260800000, 29.919923]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });