$(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: [[1551398400000,7.11607],[1551484800000,7.09516],[1551571200000,7.09516],[1551657600000,7.09516],[1551744000000,7.0748],[1551830400000,7.04833],[1551916800000,6.96272],[1552003200000,6.91848],[1552089600000,6.91848],[1552176000000,6.91848],[1552262400000,6.91848],[1552348800000,6.88123],[1552435200000,6.91268],[1552521600000,7.02029],[1552608000000,7.01252],[1552694400000,7.09619],[1552780800000,7.09619],[1552867200000,7.09619],[1552953600000,7.16442],[1553040000000,7.19449],[1553126400000,7.20138],[1553212800000,7.25039],[1553299200000,7.1007],[1553385600000,7.1007],[1553472000000,7.1007],[1553558400000,7.0896],[1553644800000,7.09539],[1553731200000,7.10285],[1553817600000,7.11703],[1553904000000,7.10818],[1553990400000,7.10818]], 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: [[1551398400000, 7.116067],[1551398400000, 7.116067],[1551484800000, 7.095158],[1551571200000, 7.095158],[1551657600000, 7.095158],[1551744000000, 7.074801],[1551830400000, 7.048330],[1551916800000, 6.962725],[1552003200000, 6.918478],[1552089600000, 6.918478],[1552176000000, 6.918478],[1552262400000, 6.918478],[1552348800000, 6.881230],[1552435200000, 6.912685],[1552521600000, 7.020288],[1552608000000, 7.012519],[1552694400000, 7.096191],[1552780800000, 7.096191],[1552867200000, 7.096191],[1552953600000, 7.164425],[1553040000000, 7.194494],[1553126400000, 7.201384],[1553212800000, 7.250394],[1553299200000, 7.100703],[1553385600000, 7.100703],[1553472000000, 7.100703],[1553558400000, 7.089597],[1553644800000, 7.095395],[1553731200000, 7.102846],[1553817600000, 7.117035],[1553904000000, 7.108177],[1553990400000, 7.108177]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });