$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1409529600000,12.547],[1409616000000,12.0825],[1409702400000,11.9755],[1409788800000,11.487],[1409875200000,null],[1409961600000,11.7854],[1410048000000,11.7854],[1410134400000,11.7854],[1410220800000,11.787],[1410307200000,11.8531],[1410393600000,11.7986],[1410480000000,11.8043],[1410566400000,11.7602],[1410652800000,11.7602],[1410739200000,11.7602],[1410825600000,11.6678],[1410912000000,11.7159],[1410998400000,11.8488],[1411084800000,12.2334],[1411171200000,null],[1411257600000,12.213],[1411344000000,12.213],[1411430400000,null],[1411516800000,12.2917],[1411603200000,11.7643],[1411689600000,11.6917],[1411776000000,11.6084],[1411862400000,11.6084],[1411948800000,11.6084],[1412035200000,11.6163]], 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, 12.547021],[1409529600000, 12.547021],[1409616000000, 12.082500],[1409702400000, 11.975510],[1409788800000, 11.486997],[1409961600000, 11.785377],[1410048000000, 11.785377],[1410134400000, 11.785377],[1410220800000, 11.787049],[1410307200000, 11.853094],[1410393600000, 11.798633],[1410480000000, 11.804294],[1410566400000, 11.760232],[1410652800000, 11.760232],[1410739200000, 11.760232],[1410825600000, 11.667834],[1410912000000, 11.715941],[1410998400000, 11.848842],[1411084800000, 12.233409],[1411257600000, 12.213021],[1411344000000, 12.213021],[1411516800000, 12.291696],[1411603200000, 11.764326],[1411689600000, 11.691704],[1411776000000, 11.608417],[1411862400000, 11.608417],[1411948800000, 11.608417],[1412035200000, 11.616264]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });