$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1498867200000,27.171],[1498953600000,27.171],[1499040000000,27.171],[1499126400000,27.0064],[1499212800000,26.965],[1499299200000,27.0234],[1499385600000,27.0339],[1499472000000,27.0394],[1499558400000,27.0394],[1499644800000,27.0394],[1499731200000,26.9019],[1499817600000,26.8307],[1499904000000,26.9023],[1499990400000,26.9262],[1500076800000,26.8746],[1500163200000,26.8746],[1500249600000,26.8746],[1500336000000,27.0259],[1500422400000,27.1767],[1500508800000,27.2161],[1500595200000,26.9759],[1500681600000,27.2743],[1500768000000,27.2743],[1500854400000,27.2743],[1500940800000,27.2942],[1501027200000,27.3178],[1501113600000,27.0268],[1501200000000,26.9658],[1501286400000,26.7645],[1501372800000,26.7645],[1501459200000,26.7645]], 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: [[1498867200000, 27.170967],[1498867200000, 27.170967],[1498953600000, 27.170967],[1499040000000, 27.170967],[1499126400000, 27.006425],[1499212800000, 26.965049],[1499299200000, 27.023355],[1499385600000, 27.033859],[1499472000000, 27.039434],[1499558400000, 27.039434],[1499644800000, 27.039434],[1499731200000, 26.901930],[1499817600000, 26.830687],[1499904000000, 26.902267],[1499990400000, 26.926157],[1500076800000, 26.874632],[1500163200000, 26.874632],[1500249600000, 26.874632],[1500336000000, 27.025858],[1500422400000, 27.176686],[1500508800000, 27.216085],[1500595200000, 26.975895],[1500681600000, 27.274296],[1500768000000, 27.274296],[1500854400000, 27.274296],[1500940800000, 27.294187],[1501027200000, 27.317769],[1501113600000, 27.026839],[1501200000000, 26.965784],[1501286400000, 26.764457],[1501372800000, 26.764457],[1501459200000, 26.764457]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });