$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1556668800000,3.95081],[1556755200000,3.95081],[1556841600000,3.98848],[1556928000000,3.95662],[1557014400000,3.95662],[1557100800000,3.95662],[1557187200000,3.97428],[1557273600000,3.94622],[1557360000000,3.93865],[1557446400000,3.93865],[1557532800000,3.94187],[1557619200000,3.94187],[1557705600000,3.94187],[1557792000000,3.93265],[1557878400000,3.93226],[1557964800000,3.9486],[1558051200000,3.9519],[1558137600000,3.9448],[1558224000000,3.9448],[1558310400000,3.9448],[1558396800000,3.9181],[1558483200000,3.90227],[1558569600000,3.93479],[1558656000000,3.92793],[1558742400000,3.96601],[1558828800000,3.96601],[1558915200000,3.96601],[1559001600000,3.94702],[1559088000000,3.95691],[1559174400000,3.9857],[1559260800000,4.00604]], 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, 3.950808],[1556668800000, 3.950808],[1556755200000, 3.950808],[1556841600000, 3.988478],[1556928000000, 3.956622],[1557014400000, 3.956622],[1557100800000, 3.956622],[1557187200000, 3.974282],[1557273600000, 3.946222],[1557360000000, 3.938646],[1557446400000, 3.938646],[1557532800000, 3.941870],[1557619200000, 3.941870],[1557705600000, 3.941870],[1557792000000, 3.932650],[1557878400000, 3.932260],[1557964800000, 3.948602],[1558051200000, 3.951896],[1558137600000, 3.944796],[1558224000000, 3.944796],[1558310400000, 3.944796],[1558396800000, 3.918101],[1558483200000, 3.902270],[1558569600000, 3.934786],[1558656000000, 3.927931],[1558742400000, 3.966006],[1558828800000, 3.966006],[1558915200000, 3.966006],[1559001600000, 3.947019],[1559088000000, 3.956912],[1559174400000, 3.985697],[1559260800000, 4.006042]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });