$(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: [[1506816000000,3.33371],[1506902400000,3.33371],[1506988800000,3.33829],[1507075200000,3.34297],[1507161600000,3.37844],[1507248000000,3.36558],[1507334400000,3.34021],[1507420800000,3.34021],[1507507200000,3.34021],[1507593600000,3.32533],[1507680000000,3.34564],[1507766400000,3.34672],[1507852800000,3.37369],[1507939200000,3.37369],[1508025600000,3.37369],[1508112000000,3.37369],[1508198400000,3.37369],[1508284800000,3.33936],[1508371200000,3.3179],[1508457600000,3.32945],[1508544000000,3.33142],[1508630400000,3.33142],[1508716800000,3.33142],[1508803200000,null],[1508889600000,3.34102],[1508976000000,3.3426],[1509062400000,3.3236],[1509148800000,3.27111],[1509235200000,3.27111],[1509321600000,3.27111],[1509408000000,3.28493]], 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: [[1506816000000, 3.333713],[1506816000000, 3.333713],[1506902400000, 3.333713],[1506988800000, 3.338293],[1507075200000, 3.342966],[1507161600000, 3.378437],[1507248000000, 3.365582],[1507334400000, 3.340209],[1507420800000, 3.340209],[1507507200000, 3.340209],[1507593600000, 3.325332],[1507680000000, 3.345642],[1507766400000, 3.346722],[1507852800000, 3.373687],[1507939200000, 3.373687],[1508025600000, 3.373687],[1508112000000, 3.373687],[1508198400000, 3.373687],[1508284800000, 3.339365],[1508371200000, 3.317903],[1508457600000, 3.329445],[1508544000000, 3.331422],[1508630400000, 3.331422],[1508716800000, 3.331422],[1508889600000, 3.341024],[1508976000000, 3.342604],[1509062400000, 3.323599],[1509148800000, 3.271106],[1509235200000, 3.271106],[1509321600000, 3.271106],[1509408000000, 3.284931]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });