$(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: [[1238544000000,6.14154],[1238630400000,6.08412],[1238716800000,6.16552],[1238803200000,6.20334],[1238889600000,6.20334],[1238976000000,6.20334],[1239062400000,6.23914],[1239148800000,6.18529],[1239235200000,6.23493],[1239321600000,6.25931],[1239408000000,6.25931],[1239494400000,6.25931],[1239580800000,6.25931],[1239667200000,6.25931],[1239753600000,6.34269],[1239840000000,6.33792],[1239926400000,6.40098],[1240012800000,6.35767],[1240099200000,6.35767],[1240185600000,6.35767],[1240272000000,6.35767],[1240358400000,6.20375],[1240444800000,6.18974],[1240531200000,6.2382],[1240617600000,6.3201],[1240704000000,6.3201],[1240790400000,6.3201],[1240876800000,6.33502],[1240963200000,6.28461],[1241049600000,6.40749]], 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: [[1238544000000, 6.141540],[1238544000000, 6.141540],[1238630400000, 6.084121],[1238716800000, 6.165525],[1238803200000, 6.203343],[1238889600000, 6.203343],[1238976000000, 6.203343],[1239062400000, 6.239145],[1239148800000, 6.185292],[1239235200000, 6.234927],[1239321600000, 6.259315],[1239408000000, 6.259315],[1239494400000, 6.259315],[1239580800000, 6.259315],[1239667200000, 6.259315],[1239753600000, 6.342694],[1239840000000, 6.337922],[1239926400000, 6.400983],[1240012800000, 6.357673],[1240099200000, 6.357673],[1240185600000, 6.357673],[1240272000000, 6.357673],[1240358400000, 6.203751],[1240444800000, 6.189737],[1240531200000, 6.238205],[1240617600000, 6.320104],[1240704000000, 6.320104],[1240790400000, 6.320104],[1240876800000, 6.335015],[1240963200000, 6.284609],[1241049600000, 6.407490]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });