$(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: [[1388534400000,7.49544],[1388620800000,7.49544],[1388707200000,7.49544],[1388793600000,7.53225],[1388880000000,7.53225],[1388966400000,7.53225],[1389052800000,7.53225],[1389139200000,7.53225],[1389225600000,7.39565],[1389312000000,7.36135],[1389398400000,7.34932],[1389484800000,7.34932],[1389571200000,7.34932],[1389657600000,7.32607],[1389744000000,7.33994],[1389830400000,7.29639],[1389916800000,7.31808],[1390003200000,7.28704],[1390089600000,7.28704],[1390176000000,7.28704],[1390262400000,7.30779],[1390348800000,7.26715],[1390435200000,7.28913],[1390521600000,7.17261],[1390608000000,7.22543],[1390694400000,7.22543],[1390780800000,7.22543],[1390867200000,7.23928],[1390953600000,7.17268],[1391040000000,7.16857],[1391126400000,7.14925]], 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: [[1388534400000, 7.495438],[1388534400000, 7.495438],[1388620800000, 7.495438],[1388707200000, 7.495438],[1388793600000, 7.532248],[1388880000000, 7.532248],[1388966400000, 7.532248],[1389052800000, 7.532248],[1389139200000, 7.532248],[1389225600000, 7.395647],[1389312000000, 7.361347],[1389398400000, 7.349319],[1389484800000, 7.349319],[1389571200000, 7.349319],[1389657600000, 7.326067],[1389744000000, 7.339940],[1389830400000, 7.296394],[1389916800000, 7.318081],[1390003200000, 7.287041],[1390089600000, 7.287041],[1390176000000, 7.287041],[1390262400000, 7.307793],[1390348800000, 7.267145],[1390435200000, 7.289126],[1390521600000, 7.172612],[1390608000000, 7.225427],[1390694400000, 7.225427],[1390780800000, 7.225427],[1390867200000, 7.239283],[1390953600000, 7.172680],[1391040000000, 7.168572],[1391126400000, 7.149248]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });