$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1556668800000,2.78938],[1556755200000,2.78938],[1556841600000,2.78671],[1556928000000,2.75954],[1557014400000,2.75954],[1557100800000,2.75954],[1557187200000,2.76649],[1557273600000,2.74967],[1557360000000,2.73548],[1557446400000,2.73548],[1557532800000,2.72221],[1557619200000,2.72221],[1557705600000,2.72221],[1557792000000,2.71081],[1557878400000,2.72478],[1557964800000,2.73885],[1558051200000,2.743],[1558137600000,2.73626],[1558224000000,2.73626],[1558310400000,2.73626],[1558396800000,2.71768],[1558483200000,2.70497],[1558569600000,2.73095],[1558656000000,2.7321],[1558742400000,2.76544],[1558828800000,2.76544],[1558915200000,2.76544],[1559001600000,2.75129],[1559088000000,2.76552],[1559174400000,2.78042],[1559260800000,2.81406]], 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, 2.789382],[1556668800000, 2.789382],[1556755200000, 2.789382],[1556841600000, 2.786708],[1556928000000, 2.759541],[1557014400000, 2.759541],[1557100800000, 2.759541],[1557187200000, 2.766486],[1557273600000, 2.749667],[1557360000000, 2.735478],[1557446400000, 2.735478],[1557532800000, 2.722205],[1557619200000, 2.722205],[1557705600000, 2.722205],[1557792000000, 2.710810],[1557878400000, 2.724784],[1557964800000, 2.738846],[1558051200000, 2.743003],[1558137600000, 2.736258],[1558224000000, 2.736258],[1558310400000, 2.736258],[1558396800000, 2.717685],[1558483200000, 2.704965],[1558569600000, 2.730946],[1558656000000, 2.732099],[1558742400000, 2.765443],[1558828800000, 2.765443],[1558915200000, 2.765443],[1559001600000, 2.751288],[1559088000000, 2.765525],[1559174400000, 2.780417],[1559260800000, 2.814059]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });