$(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: [[1235865600000,1.09564],[1235952000000,1.09564],[1236038400000,1.07431],[1236124800000,1.07779],[1236211200000,1.08136],[1236297600000,1.08549],[1236384000000,1.08865],[1236470400000,1.08865],[1236556800000,1.08865],[1236643200000,1.08865],[1236729600000,null],[1236816000000,1.11472],[1236902400000,1.10685],[1236988800000,1.12624],[1237075200000,1.12624],[1237161600000,1.12624],[1237248000000,1.14573],[1237334400000,1.12839],[1237420800000,1.1477],[1237507200000,1.21766],[1237593600000,1.2061],[1237680000000,1.2061],[1237766400000,1.2061],[1237852800000,1.20906],[1237939200000,1.20424],[1238025600000,1.19053],[1238112000000,1.18825],[1238198400000,1.16331],[1238284800000,1.16331],[1238371200000,1.16331],[1238457600000,1.13491]], 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: [[1235865600000, 1.095643],[1235865600000, 1.095643],[1235952000000, 1.095643],[1236038400000, 1.074315],[1236124800000, 1.077786],[1236211200000, 1.081359],[1236297600000, 1.085487],[1236384000000, 1.088647],[1236470400000, 1.088647],[1236556800000, 1.088647],[1236643200000, 1.088647],[1236816000000, 1.114721],[1236902400000, 1.106853],[1236988800000, 1.126244],[1237075200000, 1.126244],[1237161600000, 1.126244],[1237248000000, 1.145732],[1237334400000, 1.128386],[1237420800000, 1.147701],[1237507200000, 1.217660],[1237593600000, 1.206096],[1237680000000, 1.206096],[1237766400000, 1.206096],[1237852800000, 1.209064],[1237939200000, 1.204237],[1238025600000, 1.190533],[1238112000000, 1.188250],[1238198400000, 1.163313],[1238284800000, 1.163313],[1238371200000, 1.163313],[1238457600000, 1.134913]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });