$(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: [[1354320000000,8.04379],[1354406400000,8.04379],[1354492800000,8.04379],[1354579200000,8.05034],[1354665600000,8.04152],[1354752000000,8.05776],[1354838400000,8.06145],[1354924800000,8.05479],[1355011200000,8.05479],[1355097600000,8.05479],[1355184000000,8.09886],[1355270400000,8.10086],[1355356800000,8.11118],[1355443200000,8.13293],[1355529600000,8.119],[1355616000000,8.119],[1355702400000,8.119],[1355788800000,8.0976],[1355875200000,8.11993],[1355961600000,8.10017],[1356048000000,8.07838],[1356134400000,8.06566],[1356220800000,8.06566],[1356307200000,8.06566],[1356393600000,8.05025],[1356480000000,8.05025],[1356566400000,8.05025],[1356652800000,8.05983],[1356739200000,8.03016],[1356825600000,8.03016],[1356912000000,8.03016]], 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: [[1354320000000, 8.043792],[1354320000000, 8.043792],[1354406400000, 8.043792],[1354492800000, 8.043792],[1354579200000, 8.050339],[1354665600000, 8.041524],[1354752000000, 8.057758],[1354838400000, 8.061453],[1354924800000, 8.054792],[1355011200000, 8.054792],[1355097600000, 8.054792],[1355184000000, 8.098855],[1355270400000, 8.100862],[1355356800000, 8.111184],[1355443200000, 8.132933],[1355529600000, 8.118996],[1355616000000, 8.118996],[1355702400000, 8.118996],[1355788800000, 8.097604],[1355875200000, 8.119932],[1355961600000, 8.100174],[1356048000000, 8.078382],[1356134400000, 8.065664],[1356220800000, 8.065664],[1356307200000, 8.065664],[1356393600000, 8.050249],[1356480000000, 8.050249],[1356566400000, 8.050249],[1356652800000, 8.059831],[1356739200000, 8.030157],[1356825600000, 8.030157],[1356912000000, 8.030157]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });