$(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: [[1409529600000,2.19929],[1409616000000,2.12298],[1409702400000,2.10061],[1409788800000,2.02345],[1409875200000,null],[1409961600000,2.05582],[1410048000000,2.05582],[1410134400000,2.05582],[1410220800000,2.04032],[1410307200000,2.05241],[1410393600000,2.04496],[1410480000000,2.0459],[1410566400000,2.04082],[1410652800000,2.04082],[1410739200000,2.04082],[1410825600000,2.02476],[1410912000000,2.02647],[1410998400000,2.04618],[1411084800000,2.09459],[1411171200000,null],[1411257600000,2.11153],[1411344000000,2.11153],[1411430400000,null],[1411516800000,2.13247],[1411603200000,2.04519],[1411689600000,2.03086],[1411776000000,2.01469],[1411862400000,2.01469],[1411948800000,2.01469],[1412035200000,2.01221]], 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: [[1409529600000, 2.199288],[1409529600000, 2.199288],[1409616000000, 2.122984],[1409702400000, 2.100610],[1409788800000, 2.023448],[1409961600000, 2.055817],[1410048000000, 2.055817],[1410134400000, 2.055817],[1410220800000, 2.040317],[1410307200000, 2.052414],[1410393600000, 2.044962],[1410480000000, 2.045905],[1410566400000, 2.040820],[1410652800000, 2.040820],[1410739200000, 2.040820],[1410825600000, 2.024756],[1410912000000, 2.026468],[1410998400000, 2.046176],[1411084800000, 2.094588],[1411257600000, 2.111535],[1411344000000, 2.111535],[1411516800000, 2.132472],[1411603200000, 2.045186],[1411689600000, 2.030860],[1411776000000, 2.014691],[1411862400000, 2.014691],[1411948800000, 2.014691],[1412035200000, 2.012206]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });