$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1556668800000,36.602],[1556755200000,36.602],[1556841600000,36.7984],[1556928000000,36.6248],[1557014400000,36.6248],[1557100800000,36.6248],[1557187200000,36.7132],[1557273600000,36.4971],[1557360000000,36.3673],[1557446400000,36.3673],[1557532800000,36.3209],[1557619200000,36.3209],[1557705600000,36.3209],[1557792000000,36.1615],[1557878400000,36.2061],[1557964800000,36.4576],[1558051200000,36.4045],[1558137600000,36.362],[1558224000000,36.362],[1558310400000,36.362],[1558396800000,36.1117],[1558483200000,35.962],[1558569600000,36.2457],[1558656000000,36.2527],[1558742400000,36.5303],[1558828800000,36.5303],[1558915200000,36.5303],[1559001600000,36.3246],[1559088000000,36.4351],[1559174400000,36.7774],[1559260800000,37.0058]], 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, 36.602036],[1556668800000, 36.602036],[1556755200000, 36.602036],[1556841600000, 36.798429],[1556928000000, 36.624797],[1557014400000, 36.624797],[1557100800000, 36.624797],[1557187200000, 36.713154],[1557273600000, 36.497137],[1557360000000, 36.367295],[1557446400000, 36.367295],[1557532800000, 36.320943],[1557619200000, 36.320943],[1557705600000, 36.320943],[1557792000000, 36.161478],[1557878400000, 36.206079],[1557964800000, 36.457580],[1558051200000, 36.404547],[1558137600000, 36.361959],[1558224000000, 36.361959],[1558310400000, 36.361959],[1558396800000, 36.111740],[1558483200000, 35.961966],[1558569600000, 36.245746],[1558656000000, 36.252680],[1558742400000, 36.530341],[1558828800000, 36.530341],[1558915200000, 36.530341],[1559001600000, 36.324613],[1559088000000, 36.435064],[1559174400000, 36.777365],[1559260800000, 37.005796]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });