$(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: [[1262736000000,7.71264],[1262822400000,7.67994],[1262908800000,7.67994],[1262995200000,7.67994],[1263081600000,7.67994],[1263168000000,7.67994],[1263254400000,7.77639],[1263340800000,7.74282],[1263427200000,7.73729],[1263513600000,7.75818],[1263600000000,7.79618],[1263686400000,7.79618],[1263772800000,7.79618],[1263859200000,7.79928],[1263945600000,7.76408],[1264032000000,7.65918],[1264118400000,7.64265],[1264204800000,7.60182],[1264291200000,7.60182],[1264377600000,7.60182],[1264464000000,7.55676],[1264550400000,7.53409],[1264636800000,7.52086],[1264723200000,7.55591],[1264809600000,7.48553],[1264896000000,7.48553]], 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: [[1262736000000, 7.712638],[1262736000000, 7.712638],[1262822400000, 7.679943],[1262908800000, 7.679943],[1262995200000, 7.679943],[1263081600000, 7.679943],[1263168000000, 7.679943],[1263254400000, 7.776392],[1263340800000, 7.742819],[1263427200000, 7.737289],[1263513600000, 7.758183],[1263600000000, 7.796180],[1263686400000, 7.796180],[1263772800000, 7.796180],[1263859200000, 7.799284],[1263945600000, 7.764079],[1264032000000, 7.659179],[1264118400000, 7.642649],[1264204800000, 7.601822],[1264291200000, 7.601822],[1264377600000, 7.601822],[1264464000000, 7.556762],[1264550400000, 7.534087],[1264636800000, 7.520856],[1264723200000, 7.555909],[1264809600000, 7.485529],[1264896000000, 7.485529]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });