$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1556668800000,0.40944],[1556755200000,0.40944],[1556841600000,0.4109],[1556928000000,0.40972],[1557014400000,0.40972],[1557100800000,0.40972],[1557187200000,0.40554],[1557273600000,0.40389],[1557360000000,0.40242],[1557446400000,0.40242],[1557532800000,0.40175],[1557619200000,0.40175],[1557705600000,0.40175],[1557792000000,0.39886],[1557878400000,0.40066],[1557964800000,0.4067],[1558051200000,0.40804],[1558137600000,0.40797],[1558224000000,0.40797],[1558310400000,0.40797],[1558396800000,0.40632],[1558483200000,0.40461],[1558569600000,0.40836],[1558656000000,0.40836],[1558742400000,0.40976],[1558828800000,0.40976],[1558915200000,0.40976],[1559001600000,0.40838],[1559088000000,0.40915],[1559174400000,0.41109],[1559260800000,0.41305]], 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, 0.409440],[1556668800000, 0.409440],[1556755200000, 0.409440],[1556841600000, 0.410900],[1556928000000, 0.409720],[1557014400000, 0.409720],[1557100800000, 0.409720],[1557187200000, 0.405540],[1557273600000, 0.403890],[1557360000000, 0.402420],[1557446400000, 0.402420],[1557532800000, 0.401750],[1557619200000, 0.401750],[1557705600000, 0.401750],[1557792000000, 0.398860],[1557878400000, 0.400660],[1557964800000, 0.406700],[1558051200000, 0.408040],[1558137600000, 0.407970],[1558224000000, 0.407970],[1558310400000, 0.407970],[1558396800000, 0.406320],[1558483200000, 0.404610],[1558569600000, 0.408360],[1558656000000, 0.408360],[1558742400000, 0.409760],[1558828800000, 0.409760],[1558915200000, 0.409760],[1559001600000, 0.408380],[1559088000000, 0.409150],[1559174400000, 0.411090],[1559260800000, 0.413050]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });