$(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: [[1541030400000,21.4222],[1541116800000,21.5246],[1541203200000,21.4758],[1541289600000,21.4758],[1541376000000,21.4758],[1541462400000,21.3968],[1541548800000,21.3043],[1541635200000,21.3365],[1541721600000,21.3088],[1541808000000,21.1409],[1541894400000,21.1409],[1541980800000,21.1409],[1542067200000,21.1346],[1542153600000,21.1168],[1542240000000,21.0534],[1542326400000,21.0039],[1542412800000,21.057],[1542499200000,21.057],[1542585600000,21.057],[1542672000000,21.074],[1542758400000,21.0398],[1542844800000,20.9247],[1542931200000,20.9888],[1543017600000,21.0093],[1543104000000,21.0093],[1543190400000,21.0093],[1543276800000,21.1185],[1543363200000,21.1997],[1543449600000,21.2149],[1543536000000,21.3857]], 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: [[1541030400000, 21.422250],[1541030400000, 21.422250],[1541116800000, 21.524593],[1541203200000, 21.475825],[1541289600000, 21.475825],[1541376000000, 21.475825],[1541462400000, 21.396796],[1541548800000, 21.304304],[1541635200000, 21.336464],[1541721600000, 21.308777],[1541808000000, 21.140929],[1541894400000, 21.140929],[1541980800000, 21.140929],[1542067200000, 21.134646],[1542153600000, 21.116767],[1542240000000, 21.053353],[1542326400000, 21.003944],[1542412800000, 21.057030],[1542499200000, 21.057030],[1542585600000, 21.057030],[1542672000000, 21.073975],[1542758400000, 21.039826],[1542844800000, 20.924710],[1542931200000, 20.988840],[1543017600000, 21.009271],[1543104000000, 21.009271],[1543190400000, 21.009271],[1543276800000, 21.118517],[1543363200000, 21.199709],[1543449600000, 21.214947],[1543536000000, 21.385694]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });