$(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: [[1377993600000,7.59094],[1378080000000,7.59094],[1378166400000,7.59068],[1378252800000,7.59404],[1378339200000,7.62095],[1378425600000,7.62619],[1378512000000,7.66293],[1378598400000,7.66293],[1378684800000,7.66293],[1378771200000,7.69835],[1378857600000,7.73365],[1378944000000,7.73193],[1379030400000,7.74531],[1379116800000,7.73469],[1379203200000,7.73469],[1379289600000,7.73469],[1379376000000,7.75947],[1379462400000,7.75044],[1379548800000,7.75487],[1379635200000,7.82885],[1379721600000,7.77215],[1379808000000,7.77215],[1379894400000,7.77215],[1379980800000,7.76256],[1380067200000,7.7715],[1380153600000,7.7519],[1380240000000,7.75739],[1380326400000,7.74692],[1380412800000,7.74692],[1380499200000,7.74692]], 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: [[1377993600000, 7.590941],[1377993600000, 7.590941],[1378080000000, 7.590941],[1378166400000, 7.590677],[1378252800000, 7.594042],[1378339200000, 7.620950],[1378425600000, 7.626190],[1378512000000, 7.662928],[1378598400000, 7.662928],[1378684800000, 7.662928],[1378771200000, 7.698346],[1378857600000, 7.733654],[1378944000000, 7.731928],[1379030400000, 7.745313],[1379116800000, 7.734692],[1379203200000, 7.734692],[1379289600000, 7.734692],[1379376000000, 7.759467],[1379462400000, 7.750436],[1379548800000, 7.754871],[1379635200000, 7.828851],[1379721600000, 7.772154],[1379808000000, 7.772154],[1379894400000, 7.772154],[1379980800000, 7.762560],[1380067200000, 7.771501],[1380153600000, 7.751901],[1380240000000, 7.757388],[1380326400000, 7.746921],[1380412800000, 7.746921],[1380499200000, 7.746921]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });