$(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: [[1422748800000,1.9607],[1422835200000,1.9607],[1422921600000,1.94998],[1423008000000,1.961],[1423094400000,2.02202],[1423180800000,2.18523],[1423267200000,null],[1423353600000,2.79047],[1423440000000,2.79047],[1423526400000,3.02092],[1423612800000,2.95798],[1423699200000,3.06299],[1423785600000,3.00229],[1423872000000,3.04892],[1423958400000,3.04892],[1424044800000,3.04892],[1424131200000,3.09191],[1424217600000,3.13759],[1424304000000,3.21225],[1424390400000,3.25813],[1424476800000,3.31433],[1424563200000,3.31433],[1424649600000,3.31433],[1424736000000,3.36379],[1424822400000,3.3415],[1424908800000,3.33728],[1424995200000,3.58756],[1425081600000,3.33732]], 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: [[1422748800000, 1.960702],[1422748800000, 1.960702],[1422835200000, 1.960702],[1422921600000, 1.949983],[1423008000000, 1.961000],[1423094400000, 2.022018],[1423180800000, 2.185226],[1423353600000, 2.790471],[1423440000000, 2.790471],[1423526400000, 3.020923],[1423612800000, 2.957983],[1423699200000, 3.062988],[1423785600000, 3.002291],[1423872000000, 3.048921],[1423958400000, 3.048921],[1424044800000, 3.048921],[1424131200000, 3.091909],[1424217600000, 3.137588],[1424304000000, 3.212246],[1424390400000, 3.258125],[1424476800000, 3.314332],[1424563200000, 3.314332],[1424649600000, 3.314332],[1424736000000, 3.363789],[1424822400000, 3.341496],[1424908800000, 3.337277],[1424995200000, 3.587561],[1425081600000, 3.337319]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });