$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1409529600000,1.94909],[1409616000000,1.88689],[1409702400000,1.85858],[1409788800000,1.786],[1409875200000,null],[1409961600000,1.82244],[1410048000000,1.82244],[1410134400000,1.82244],[1410220800000,1.80825],[1410307200000,1.82438],[1410393600000,1.82213],[1410480000000,1.82723],[1410566400000,1.82086],[1410652800000,1.82086],[1410739200000,1.82086],[1410825600000,1.80754],[1410912000000,1.81622],[1410998400000,1.83384],[1411084800000,1.87765],[1411171200000,null],[1411257600000,1.88108],[1411344000000,1.88108],[1411430400000,null],[1411516800000,1.89438],[1411603200000,1.81932],[1411689600000,1.80892],[1411776000000,1.78684],[1411862400000,1.78684],[1411948800000,1.78684],[1412035200000,1.78382]], 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, 1.949092],[1409529600000, 1.949092],[1409616000000, 1.886894],[1409702400000, 1.858581],[1409788800000, 1.786004],[1409961600000, 1.822441],[1410048000000, 1.822441],[1410134400000, 1.822441],[1410220800000, 1.808247],[1410307200000, 1.824378],[1410393600000, 1.822132],[1410480000000, 1.827230],[1410566400000, 1.820857],[1410652800000, 1.820857],[1410739200000, 1.820857],[1410825600000, 1.807536],[1410912000000, 1.816225],[1410998400000, 1.833841],[1411084800000, 1.877654],[1411257600000, 1.881083],[1411344000000, 1.881083],[1411516800000, 1.894381],[1411603200000, 1.819318],[1411689600000, 1.808920],[1411776000000, 1.786844],[1411862400000, 1.786844],[1411948800000, 1.786844],[1412035200000, 1.783820]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });