$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1498867200000,7.02758],[1498953600000,7.02758],[1499040000000,7.02758],[1499126400000,6.97748],[1499212800000,6.96213],[1499299200000,6.96856],[1499385600000,6.98471],[1499472000000,7.01701],[1499558400000,7.01701],[1499644800000,7.01701],[1499731200000,6.99361],[1499817600000,6.97623],[1499904000000,6.98924],[1499990400000,7.00378],[1500076800000,7.04239],[1500163200000,7.04239],[1500249600000,7.04239],[1500336000000,7.07245],[1500422400000,7.12896],[1500508800000,7.10266],[1500595200000,7.07332],[1500681600000,7.11473],[1500768000000,7.11473],[1500854400000,7.11473],[1500940800000,7.09258],[1501027200000,7.09912],[1501113600000,7.07304],[1501200000000,7.11971],[1501286400000,7.15327],[1501372800000,7.15327],[1501459200000,7.15327]], 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, 7.027584],[1498867200000, 7.027584],[1498953600000, 7.027584],[1499040000000, 7.027584],[1499126400000, 6.977483],[1499212800000, 6.962126],[1499299200000, 6.968555],[1499385600000, 6.984712],[1499472000000, 7.017015],[1499558400000, 7.017015],[1499644800000, 7.017015],[1499731200000, 6.993612],[1499817600000, 6.976231],[1499904000000, 6.989240],[1499990400000, 7.003778],[1500076800000, 7.042387],[1500163200000, 7.042387],[1500249600000, 7.042387],[1500336000000, 7.072451],[1500422400000, 7.128958],[1500508800000, 7.102657],[1500595200000, 7.073323],[1500681600000, 7.114726],[1500768000000, 7.114726],[1500854400000, 7.114726],[1500940800000, 7.092575],[1501027200000, 7.099116],[1501113600000, 7.073037],[1501200000000, 7.119712],[1501286400000, 7.153271],[1501372800000, 7.153271],[1501459200000, 7.153271]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });