$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1235865600000,7.7],[1235952000000,7.7],[1236038400000,7.7],[1236124800000,7.7],[1236211200000,7.7],[1236297600000,7.7],[1236384000000,7.7],[1236470400000,7.7],[1236556800000,7.7],[1236643200000,7.7],[1236729600000,null],[1236816000000,7.7],[1236902400000,7.7],[1236988800000,7.7],[1237075200000,7.7],[1237161600000,7.7],[1237248000000,7.7],[1237334400000,7.7],[1237420800000,7.7],[1237507200000,7.7],[1237593600000,7.7],[1237680000000,7.7],[1237766400000,7.7],[1237852800000,7.7],[1237939200000,7.7],[1238025600000,7.7],[1238112000000,7.7],[1238198400000,7.7],[1238284800000,7.7],[1238371200000,7.7],[1238457600000,7.7]], 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, 7.700000],[1235865600000, 7.700000],[1235952000000, 7.700000],[1236038400000, 7.700000],[1236124800000, 7.700000],[1236211200000, 7.700000],[1236297600000, 7.700000],[1236384000000, 7.700000],[1236470400000, 7.700000],[1236556800000, 7.700000],[1236643200000, 7.700000],[1236816000000, 7.700000],[1236902400000, 7.700000],[1236988800000, 7.700000],[1237075200000, 7.700000],[1237161600000, 7.700000],[1237248000000, 7.700000],[1237334400000, 7.700000],[1237420800000, 7.700000],[1237507200000, 7.700000],[1237593600000, 7.700000],[1237680000000, 7.700000],[1237766400000, 7.700000],[1237852800000, 7.700000],[1237939200000, 7.700000],[1238025600000, 7.700000],[1238112000000, 7.700000],[1238198400000, 7.700000],[1238284800000, 7.700000],[1238371200000, 7.700000],[1238457600000, 7.700000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });