$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1556668800000,1.48068],[1556755200000,1.48068],[1556841600000,1.48436],[1556928000000,1.48007],[1557014400000,1.48007],[1557100800000,1.48007],[1557187200000,1.48225],[1557273600000,1.47199],[1557360000000,1.46693],[1557446400000,1.46693],[1557532800000,1.46449],[1557619200000,1.46449],[1557705600000,1.46449],[1557792000000,1.45867],[1557878400000,1.45883],[1557964800000,1.47064],[1558051200000,1.46895],[1558137600000,1.46979],[1558224000000,1.46979],[1558310400000,1.46979],[1558396800000,1.46033],[1558483200000,1.45407],[1558569600000,1.46259],[1558656000000,1.46043],[1558742400000,1.46645],[1558828800000,1.46645],[1558915200000,1.46645],[1559001600000,1.4577],[1559088000000,1.45999],[1559174400000,1.47222],[1559260800000,1.47765]], 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.480678],[1556668800000, 1.480678],[1556755200000, 1.480678],[1556841600000, 1.484358],[1556928000000, 1.480066],[1557014400000, 1.480066],[1557100800000, 1.480066],[1557187200000, 1.482248],[1557273600000, 1.471986],[1557360000000, 1.466931],[1557446400000, 1.466931],[1557532800000, 1.464491],[1557619200000, 1.464491],[1557705600000, 1.464491],[1557792000000, 1.458668],[1557878400000, 1.458826],[1557964800000, 1.470641],[1558051200000, 1.468947],[1558137600000, 1.469791],[1558224000000, 1.469791],[1558310400000, 1.469791],[1558396800000, 1.460325],[1558483200000, 1.454068],[1558569600000, 1.462591],[1558656000000, 1.460426],[1558742400000, 1.466454],[1558828800000, 1.466454],[1558915200000, 1.466454],[1559001600000, 1.457703],[1559088000000, 1.459993],[1559174400000, 1.472219],[1559260800000, 1.477652]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });