$(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: [[1470009600000,32.6629],[1470096000000,32.7281],[1470182400000,32.9553],[1470268800000,33.1235],[1470355200000,32.6553],[1470441600000,32.6296],[1470528000000,32.6296],[1470614400000,32.6296],[1470700800000,32.3907],[1470787200000,32.1944],[1470873600000,32.4463],[1470960000000,32.2133],[1471046400000,32.4745],[1471132800000,32.4745],[1471219200000,32.4745],[1471305600000,32.3947],[1471392000000,32.5114],[1471478400000,32.6523],[1471564800000,33.1068],[1471651200000,33.0636],[1471737600000,33.0636],[1471824000000,33.0636],[1471910400000,33.1565],[1471996800000,33.367],[1472083200000,33.367],[1472169600000,33.4191],[1472256000000,33.6155],[1472342400000,33.6155],[1472428800000,33.6155],[1472515200000,33.3086],[1472601600000,33.6368]], 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: [[1470009600000, 32.662929],[1470009600000, 32.662929],[1470096000000, 32.728090],[1470182400000, 32.955261],[1470268800000, 33.123500],[1470355200000, 32.655328],[1470441600000, 32.629619],[1470528000000, 32.629619],[1470614400000, 32.629619],[1470700800000, 32.390717],[1470787200000, 32.194372],[1470873600000, 32.446282],[1470960000000, 32.213279],[1471046400000, 32.474509],[1471132800000, 32.474509],[1471219200000, 32.474509],[1471305600000, 32.394669],[1471392000000, 32.511447],[1471478400000, 32.652325],[1471564800000, 33.106767],[1471651200000, 33.063591],[1471737600000, 33.063591],[1471824000000, 33.063591],[1471910400000, 33.156524],[1471996800000, 33.366987],[1472083200000, 33.366987],[1472169600000, 33.419053],[1472256000000, 33.615472],[1472342400000, 33.615472],[1472428800000, 33.615472],[1472515200000, 33.308604],[1472601600000, 33.636753]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });