$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1551398400000,20.3845],[1551484800000,20.4243],[1551571200000,20.4243],[1551657600000,20.4243],[1551744000000,20.1523],[1551830400000,20.0576],[1551916800000,19.7891],[1552003200000,19.6571],[1552089600000,19.6571],[1552176000000,19.6571],[1552262400000,19.6571],[1552348800000,19.6019],[1552435200000,19.6681],[1552521600000,20.0055],[1552608000000,20.0188],[1552694400000,20.2066],[1552780800000,20.2066],[1552867200000,20.2066],[1552953600000,20.3462],[1553040000000,20.4842],[1553126400000,20.3943],[1553212800000,20.4337],[1553299200000,20.1064],[1553385600000,20.1064],[1553472000000,20.1064],[1553558400000,20.0289],[1553644800000,20.1318],[1553731200000,20.1952],[1553817600000,20.2892],[1553904000000,20.3796],[1553990400000,20.3796]], 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, 20.384538],[1551398400000, 20.384538],[1551484800000, 20.424349],[1551571200000, 20.424349],[1551657600000, 20.424349],[1551744000000, 20.152309],[1551830400000, 20.057618],[1551916800000, 19.789087],[1552003200000, 19.657148],[1552089600000, 19.657148],[1552176000000, 19.657148],[1552262400000, 19.657148],[1552348800000, 19.601910],[1552435200000, 19.668054],[1552521600000, 20.005517],[1552608000000, 20.018756],[1552694400000, 20.206635],[1552780800000, 20.206635],[1552867200000, 20.206635],[1552953600000, 20.346228],[1553040000000, 20.484244],[1553126400000, 20.394321],[1553212800000, 20.433709],[1553299200000, 20.106400],[1553385600000, 20.106400],[1553472000000, 20.106400],[1553558400000, 20.028905],[1553644800000, 20.131753],[1553731200000, 20.195204],[1553817600000, 20.289171],[1553904000000, 20.379618],[1553990400000, 20.379618]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });