$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1422748800000,2.07215],[1422835200000,2.07215],[1422921600000,2.06647],[1423008000000,2.10594],[1423094400000,2.20341],[1423180800000,2.38718],[1423267200000,null],[1423353600000,3.05569],[1423440000000,3.05569],[1423526400000,3.33283],[1423612800000,3.25122],[1423699200000,3.37045],[1423785600000,3.30123],[1423872000000,3.35837],[1423958400000,3.35837],[1424044800000,3.35837],[1424131200000,3.42606],[1424217600000,3.49509],[1424304000000,3.5686],[1424390400000,3.63962],[1424476800000,3.66946],[1424563200000,3.66946],[1424649600000,3.66946],[1424736000000,3.72718],[1424822400000,3.69926],[1424908800000,3.68354],[1424995200000,3.94434],[1425081600000,3.66879]], 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, 2.072149],[1422748800000, 2.072149],[1422835200000, 2.072149],[1422921600000, 2.066472],[1423008000000, 2.105942],[1423094400000, 2.203407],[1423180800000, 2.387177],[1423353600000, 3.055690],[1423440000000, 3.055690],[1423526400000, 3.332831],[1423612800000, 3.251223],[1423699200000, 3.370449],[1423785600000, 3.301229],[1423872000000, 3.358365],[1423958400000, 3.358365],[1424044800000, 3.358365],[1424131200000, 3.426057],[1424217600000, 3.495092],[1424304000000, 3.568601],[1424390400000, 3.639624],[1424476800000, 3.669458],[1424563200000, 3.669458],[1424649600000, 3.669458],[1424736000000, 3.727179],[1424822400000, 3.699256],[1424908800000, 3.683541],[1424995200000, 3.944343],[1425081600000, 3.668791]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });