$(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: [[1422748800000,2.45601],[1422835200000,2.45601],[1422921600000,2.4522],[1423008000000,2.46764],[1423094400000,2.55653],[1423180800000,2.76767],[1423267200000,null],[1423353600000,3.54464],[1423440000000,3.54464],[1423526400000,3.83758],[1423612800000,3.76245],[1423699200000,3.87864],[1423785600000,3.81477],[1423872000000,3.94392],[1423958400000,3.94392],[1424044800000,3.94392],[1424131200000,3.98272],[1424217600000,4.0395],[1424304000000,4.10959],[1424390400000,4.17941],[1424476800000,4.26137],[1424563200000,4.26137],[1424649600000,4.26137],[1424736000000,4.29256],[1424822400000,4.28252],[1424908800000,4.25907],[1424995200000,4.56123],[1425081600000,4.20728]], 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.456014],[1422748800000, 2.456014],[1422835200000, 2.456014],[1422921600000, 2.452200],[1423008000000, 2.467636],[1423094400000, 2.556533],[1423180800000, 2.767669],[1423353600000, 3.544643],[1423440000000, 3.544643],[1423526400000, 3.837584],[1423612800000, 3.762447],[1423699200000, 3.878635],[1423785600000, 3.814773],[1423872000000, 3.943919],[1423958400000, 3.943919],[1424044800000, 3.943919],[1424131200000, 3.982722],[1424217600000, 4.039498],[1424304000000, 4.109595],[1424390400000, 4.179407],[1424476800000, 4.261367],[1424563200000, 4.261367],[1424649600000, 4.261367],[1424736000000, 4.292560],[1424822400000, 4.282516],[1424908800000, 4.259072],[1424995200000, 4.561225],[1425081600000, 4.207277]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });