$(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: [[1383264000000,7.65087],[1383350400000,null],[1383436800000,7.66549],[1383523200000,7.66549],[1383609600000,7.68461],[1383696000000,7.66415],[1383782400000,7.65599],[1383868800000,7.6633],[1383955200000,7.64521],[1384041600000,7.64521],[1384128000000,7.64521],[1384214400000,7.63284],[1384300800000,7.61594],[1384387200000,7.62036],[1384473600000,7.61335],[1384560000000,7.63832],[1384646400000,7.63832],[1384732800000,7.63832],[1384819200000,7.67285],[1384905600000,7.65835],[1384992000000,7.64378],[1385078400000,7.63213],[1385164800000,7.58294],[1385251200000,7.58294],[1385337600000,7.58294],[1385424000000,7.56848],[1385510400000,7.59441],[1385596800000,7.55617],[1385683200000,7.5571],[1385769600000,7.5582]], 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: [[1383264000000, 7.650868],[1383264000000, 7.650868],[1383436800000, 7.665492],[1383523200000, 7.665492],[1383609600000, 7.684614],[1383696000000, 7.664147],[1383782400000, 7.655994],[1383868800000, 7.663303],[1383955200000, 7.645206],[1384041600000, 7.645206],[1384128000000, 7.645206],[1384214400000, 7.632842],[1384300800000, 7.615945],[1384387200000, 7.620361],[1384473600000, 7.613352],[1384560000000, 7.638323],[1384646400000, 7.638323],[1384732800000, 7.638323],[1384819200000, 7.672849],[1384905600000, 7.658351],[1384992000000, 7.643783],[1385078400000, 7.632128],[1385164800000, 7.582944],[1385251200000, 7.582944],[1385337600000, 7.582944],[1385424000000, 7.568484],[1385510400000, 7.594415],[1385596800000, 7.556169],[1385683200000, 7.557099],[1385769600000, 7.558199]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });