$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1459468800000,4.00599],[1459555200000,4.00617],[1459641600000,4.00617],[1459728000000,4.00617],[1459814400000,3.97291],[1459900800000,3.98302],[1459987200000,3.95446],[1460073600000,3.94004],[1460160000000,3.91341],[1460246400000,null],[1460332800000,null],[1460419200000,3.91338],[1460505600000,3.91224],[1460592000000,3.86828],[1460678400000,3.87808],[1460764800000,3.86299],[1460851200000,3.86299],[1460937600000,3.86299],[1461024000000,3.87184],[1461110400000,3.87791],[1461196800000,3.88494],[1461283200000,3.87198],[1461369600000,3.83596],[1461456000000,3.83596],[1461542400000,3.83596],[1461628800000,3.83533],[1461715200000,3.83753],[1461801600000,3.82929],[1461888000000,3.84335],[1461974400000,3.86037]], 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: [[1459468800000, 4.005991],[1459468800000, 4.005991],[1459555200000, 4.006175],[1459641600000, 4.006175],[1459728000000, 4.006175],[1459814400000, 3.972910],[1459900800000, 3.983017],[1459987200000, 3.954457],[1460073600000, 3.940039],[1460160000000, 3.913409],[1460419200000, 3.913376],[1460505600000, 3.912240],[1460592000000, 3.868281],[1460678400000, 3.878079],[1460764800000, 3.862988],[1460851200000, 3.862988],[1460937600000, 3.862988],[1461024000000, 3.871840],[1461110400000, 3.877906],[1461196800000, 3.884938],[1461283200000, 3.871979],[1461369600000, 3.835963],[1461456000000, 3.835963],[1461542400000, 3.835963],[1461628800000, 3.835330],[1461715200000, 3.837534],[1461801600000, 3.829287],[1461888000000, 3.843355],[1461974400000, 3.860370]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });