$(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: [[1420070400000,2.58493],[1420156800000,2.58493],[1420243200000,2.58493],[1420329600000,2.58493],[1420416000000,2.58493],[1420502400000,2.58493],[1420588800000,2.52672],[1420675200000,2.52672],[1420761600000,null],[1420848000000,2.49121],[1420934400000,2.49121],[1421020800000,2.49121],[1421107200000,2.50224],[1421193600000,2.50197],[1421280000000,null],[1421366400000,2.49729],[1421452800000,2.48786],[1421539200000,2.47459],[1421625600000,2.47459],[1421712000000,2.46389],[1421798400000,2.46199],[1421884800000,2.45823],[1421971200000,null],[1422057600000,2.46423],[1422144000000,2.46423],[1422230400000,2.46423],[1422316800000,2.37862],[1422403200000,2.40128],[1422489600000,2.40887],[1422576000000,2.4313],[1422662400000,2.45601]], 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: [[1420070400000, 2.584929],[1420070400000, 2.584929],[1420156800000, 2.584929],[1420243200000, 2.584929],[1420329600000, 2.584929],[1420416000000, 2.584929],[1420502400000, 2.584929],[1420588800000, 2.526724],[1420675200000, 2.526724],[1420848000000, 2.491211],[1420934400000, 2.491211],[1421020800000, 2.491211],[1421107200000, 2.502236],[1421193600000, 2.501974],[1421366400000, 2.497291],[1421452800000, 2.487862],[1421539200000, 2.474593],[1421625600000, 2.474593],[1421712000000, 2.463886],[1421798400000, 2.461988],[1421884800000, 2.458228],[1422057600000, 2.464233],[1422144000000, 2.464233],[1422230400000, 2.464233],[1422316800000, 2.378617],[1422403200000, 2.401276],[1422489600000, 2.408871],[1422576000000, 2.431300],[1422662400000, 2.456014]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });