$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1235865600000,13.7222],[1235952000000,13.7222],[1236038400000,13.6701],[1236124800000,13.7062],[1236211200000,13.6641],[1236297600000,13.6718],[1236384000000,13.7743],[1236470400000,13.7743],[1236556800000,13.7743],[1236643200000,13.7743],[1236729600000,null],[1236816000000,13.9175],[1236902400000,13.921],[1236988800000,14.051],[1237075200000,14.051],[1237161600000,14.051],[1237248000000,14.1941],[1237334400000,14.0853],[1237420800000,14.2899],[1237507200000,14.8682],[1237593600000,14.7293],[1237680000000,14.7293],[1237766400000,14.7293],[1237852800000,14.7183],[1237939200000,14.6546],[1238025600000,14.6447],[1238112000000,14.7673],[1238198400000,14.4266],[1238284800000,14.4266],[1238371200000,14.4266],[1238457600000,14.316]], 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, 13.722171],[1235865600000, 13.722171],[1235952000000, 13.722171],[1236038400000, 13.670078],[1236124800000, 13.706152],[1236211200000, 13.664099],[1236297600000, 13.671829],[1236384000000, 13.774251],[1236470400000, 13.774251],[1236556800000, 13.774251],[1236643200000, 13.774251],[1236816000000, 13.917472],[1236902400000, 13.920990],[1236988800000, 14.050976],[1237075200000, 14.050976],[1237161600000, 14.050976],[1237248000000, 14.194120],[1237334400000, 14.085286],[1237420800000, 14.289894],[1237507200000, 14.868178],[1237593600000, 14.729253],[1237680000000, 14.729253],[1237766400000, 14.729253],[1237852800000, 14.718257],[1237939200000, 14.654629],[1238025600000, 14.644651],[1238112000000, 14.767287],[1238198400000, 14.426649],[1238284800000, 14.426649],[1238371200000, 14.426649],[1238457600000, 14.315967]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });