$(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: [[1470009600000,18.8264],[1470096000000,18.9678],[1470182400000,19.0201],[1470268800000,18.9435],[1470355200000,19.0062],[1470441600000,19.0469],[1470528000000,19.0469],[1470614400000,19.0469],[1470700800000,18.8825],[1470787200000,18.8739],[1470873600000,19.0663],[1470960000000,19.0368],[1471046400000,19.3012],[1471132800000,19.3012],[1471219200000,19.3012],[1471305600000,19.437],[1471392000000,19.5513],[1471478400000,19.4714],[1471564800000,19.6199],[1471651200000,19.6688],[1471737600000,19.6688],[1471824000000,19.6688],[1471910400000,19.5824],[1471996800000,19.6198],[1472083200000,19.6198],[1472169600000,19.5908],[1472256000000,19.7473],[1472342400000,19.7473],[1472428800000,19.7473],[1472515200000,19.5864],[1472601600000,19.6734]], 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, 18.826410],[1470009600000, 18.826410],[1470096000000, 18.967798],[1470182400000, 19.020113],[1470268800000, 18.943518],[1470355200000, 19.006183],[1470441600000, 19.046858],[1470528000000, 19.046858],[1470614400000, 19.046858],[1470700800000, 18.882546],[1470787200000, 18.873942],[1470873600000, 19.066342],[1470960000000, 19.036789],[1471046400000, 19.301226],[1471132800000, 19.301226],[1471219200000, 19.301226],[1471305600000, 19.437026],[1471392000000, 19.551334],[1471478400000, 19.471384],[1471564800000, 19.619931],[1471651200000, 19.668825],[1471737600000, 19.668825],[1471824000000, 19.668825],[1471910400000, 19.582377],[1471996800000, 19.619788],[1472083200000, 19.619788],[1472169600000, 19.590795],[1472256000000, 19.747299],[1472342400000, 19.747299],[1472428800000, 19.747299],[1472515200000, 19.586449],[1472601600000, 19.673412]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });