$(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: [[1554076800000,2.93993],[1554163200000,2.93202],[1554249600000,2.89328],[1554336000000,2.9192],[1554422400000,2.9129],[1554508800000,2.88407],[1554595200000,2.88407],[1554681600000,2.88407],[1554768000000,2.87218],[1554854400000,2.88779],[1554940800000,2.89162],[1555027200000,2.89575],[1555113600000,2.88609],[1555200000000,2.88609],[1555286400000,2.88609],[1555372800000,2.89943],[1555459200000,2.88705],[1555545600000,2.88863],[1555632000000,2.88205],[1555718400000,2.8838],[1555804800000,2.8838],[1555891200000,2.8838],[1555977600000,2.87536],[1556064000000,2.85625],[1556150400000,2.83872],[1556236800000,2.78552],[1556323200000,2.78938],[1556409600000,2.78938],[1556496000000,2.78938],[1556582400000,2.78938]], 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: [[1554076800000, 2.939933],[1554076800000, 2.939933],[1554163200000, 2.932021],[1554249600000, 2.893281],[1554336000000, 2.919205],[1554422400000, 2.912901],[1554508800000, 2.884067],[1554595200000, 2.884067],[1554681600000, 2.884067],[1554768000000, 2.872178],[1554854400000, 2.887788],[1554940800000, 2.891619],[1555027200000, 2.895747],[1555113600000, 2.886091],[1555200000000, 2.886091],[1555286400000, 2.886091],[1555372800000, 2.899433],[1555459200000, 2.887052],[1555545600000, 2.888632],[1555632000000, 2.882051],[1555718400000, 2.883803],[1555804800000, 2.883803],[1555891200000, 2.883803],[1555977600000, 2.875362],[1556064000000, 2.856254],[1556150400000, 2.838724],[1556236800000, 2.785519],[1556323200000, 2.789382],[1556409600000, 2.789382],[1556496000000, 2.789382],[1556582400000, 2.789382]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });