$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1541030400000,35.8094],[1541116800000,36.3833],[1541203200000,36.5531],[1541289600000,36.5531],[1541376000000,36.5531],[1541462400000,36.3893],[1541548800000,36.5901],[1541635200000,36.6638],[1541721600000,36.6021],[1541808000000,36.3524],[1541894400000,36.3524],[1541980800000,36.3524],[1542067200000,35.8982],[1542153600000,36.1592],[1542240000000,36.1265],[1542326400000,35.5311],[1542412800000,35.6432],[1542499200000,35.6432],[1542585600000,35.6432],[1542672000000,35.615],[1542758400000,35.6651],[1542844800000,35.5618],[1542931200000,35.7103],[1543017600000,35.6621],[1543104000000,35.6621],[1543190400000,35.6621],[1543276800000,35.8446],[1543363200000,35.8743],[1543449600000,36.148],[1543536000000,36.2694]], 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, 35.809407],[1541030400000, 35.809407],[1541116800000, 36.383307],[1541203200000, 36.553140],[1541289600000, 36.553140],[1541376000000, 36.553140],[1541462400000, 36.389342],[1541548800000, 36.590123],[1541635200000, 36.663771],[1541721600000, 36.602114],[1541808000000, 36.352401],[1541894400000, 36.352401],[1541980800000, 36.352401],[1542067200000, 35.898222],[1542153600000, 36.159230],[1542240000000, 36.126497],[1542326400000, 35.531059],[1542412800000, 35.643225],[1542499200000, 35.643225],[1542585600000, 35.643225],[1542672000000, 35.614955],[1542758400000, 35.665094],[1542844800000, 35.561769],[1542931200000, 35.710262],[1543017600000, 35.662098],[1543104000000, 35.662098],[1543190400000, 35.662098],[1543276800000, 35.844646],[1543363200000, 35.874298],[1543449600000, 36.147991],[1543536000000, 36.269428]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });