$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1235865600000,4.9777],[1235952000000,4.9777],[1236038400000,4.95171],[1236124800000,4.96857],[1236211200000,4.97215],[1236297600000,4.94975],[1236384000000,4.98245],[1236470400000,4.98245],[1236556800000,4.98245],[1236643200000,4.98245],[1236729600000,null],[1236816000000,5.02307],[1236902400000,5.03357],[1236988800000,4.99364],[1237075200000,4.99364],[1237161600000,4.99364],[1237248000000,5.02821],[1237334400000,5.02311],[1237420800000,5.05404],[1237507200000,5.11276],[1237593600000,5.08046],[1237680000000,5.08046],[1237766400000,5.08046],[1237852800000,5.09426],[1237939200000,5.09149],[1238025600000,5.09932],[1238112000000,5.14885],[1238198400000,5.07795],[1238284800000,5.07795],[1238371200000,5.07795],[1238457600000,5.06538]], 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, 4.977698],[1235865600000, 4.977698],[1235952000000, 4.977698],[1236038400000, 4.951713],[1236124800000, 4.968568],[1236211200000, 4.972149],[1236297600000, 4.949747],[1236384000000, 4.982446],[1236470400000, 4.982446],[1236556800000, 4.982446],[1236643200000, 4.982446],[1236816000000, 5.023071],[1236902400000, 5.033570],[1236988800000, 4.993643],[1237075200000, 4.993643],[1237161600000, 4.993643],[1237248000000, 5.028209],[1237334400000, 5.023106],[1237420800000, 5.054039],[1237507200000, 5.112764],[1237593600000, 5.080463],[1237680000000, 5.080463],[1237766400000, 5.080463],[1237852800000, 5.094257],[1237939200000, 5.091492],[1238025600000, 5.099323],[1238112000000, 5.148848],[1238198400000, 5.077951],[1238284800000, 5.077951],[1238371200000, 5.077951],[1238457600000, 5.065375]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });