$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1551398400000,19.9236],[1551484800000,19.8605],[1551571200000,19.8605],[1551657600000,19.8605],[1551744000000,19.7994],[1551830400000,19.7416],[1551916800000,19.5042],[1552003200000,19.4299],[1552089600000,19.4299],[1552176000000,19.4299],[1552262400000,19.4299],[1552348800000,19.3582],[1552435200000,19.4353],[1552521600000,19.6948],[1552608000000,19.6909],[1552694400000,19.9493],[1552780800000,19.9493],[1552867200000,19.9493],[1552953600000,20.0795],[1553040000000,20.1077],[1553126400000,20.115],[1553212800000,20.2194],[1553299200000,19.9602],[1553385600000,19.9602],[1553472000000,19.9602],[1553558400000,19.9215],[1553644800000,19.9707],[1553731200000,19.9861],[1553817600000,20.0746],[1553904000000,20.093],[1553990400000,20.093]], 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, 19.923602],[1551398400000, 19.923602],[1551484800000, 19.860543],[1551571200000, 19.860543],[1551657600000, 19.860543],[1551744000000, 19.799404],[1551830400000, 19.741565],[1551916800000, 19.504157],[1552003200000, 19.429860],[1552089600000, 19.429860],[1552176000000, 19.429860],[1552262400000, 19.429860],[1552348800000, 19.358216],[1552435200000, 19.435258],[1552521600000, 19.694827],[1552608000000, 19.690880],[1552694400000, 19.949318],[1552780800000, 19.949318],[1552867200000, 19.949318],[1552953600000, 20.079545],[1553040000000, 20.107724],[1553126400000, 20.115037],[1553212800000, 20.219388],[1553299200000, 19.960205],[1553385600000, 19.960205],[1553472000000, 19.960205],[1553558400000, 19.921462],[1553644800000, 19.970741],[1553731200000, 19.986092],[1553817600000, 20.074647],[1553904000000, 20.092959],[1553990400000, 20.092959]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });