$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1388534400000,1.30708],[1388620800000,1.30708],[1388707200000,1.30708],[1388793600000,1.30378],[1388880000000,1.30378],[1388966400000,1.30378],[1389052800000,1.30378],[1389139200000,1.30378],[1389225600000,1.29184],[1389312000000,1.29409],[1389398400000,1.29248],[1389484800000,1.29248],[1389571200000,1.29248],[1389657600000,1.30515],[1389744000000,1.31078],[1389830400000,1.30736],[1389916800000,1.29552],[1390003200000,1.29574],[1390089600000,1.29574],[1390176000000,1.29574],[1390262400000,1.29434],[1390348800000,1.29137],[1390435200000,1.29619],[1390521600000,1.30833],[1390608000000,1.3037],[1390694400000,1.3037],[1390780800000,1.3037],[1390867200000,1.29377],[1390953600000,1.298],[1391040000000,1.28903],[1391126400000,1.28126]], 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, 1.307077],[1388534400000, 1.307077],[1388620800000, 1.307077],[1388707200000, 1.307077],[1388793600000, 1.303781],[1388880000000, 1.303781],[1388966400000, 1.303781],[1389052800000, 1.303781],[1389139200000, 1.303781],[1389225600000, 1.291842],[1389312000000, 1.294091],[1389398400000, 1.292483],[1389484800000, 1.292483],[1389571200000, 1.292483],[1389657600000, 1.305147],[1389744000000, 1.310779],[1389830400000, 1.307360],[1389916800000, 1.295516],[1390003200000, 1.295745],[1390089600000, 1.295745],[1390176000000, 1.295745],[1390262400000, 1.294336],[1390348800000, 1.291368],[1390435200000, 1.296193],[1390521600000, 1.308329],[1390608000000, 1.303702],[1390694400000, 1.303702],[1390780800000, 1.303702],[1390867200000, 1.293771],[1390953600000, 1.297995],[1391040000000, 1.289035],[1391126400000, 1.281259]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });