$(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: [[1522540800000,20.3919],[1522627200000,20.3919],[1522713600000,20.2787],[1522800000000,20.4871],[1522886400000,20.4624],[1522972800000,20.4084],[1523059200000,20.3459],[1523145600000,20.3459],[1523232000000,20.3459],[1523318400000,20.3459],[1523404800000,20.5231],[1523491200000,20.5483],[1523577600000,20.6374],[1523664000000,20.7842],[1523750400000,20.7842],[1523836800000,20.7842],[1523923200000,20.6928],[1524009600000,20.7792],[1524096000000,20.8013],[1524182400000,20.808],[1524268800000,20.7129],[1524355200000,20.7129],[1524441600000,20.7129],[1524528000000,20.431],[1524614400000,20.4126],[1524700800000,20.3838],[1524787200000,20.4359],[1524873600000,20.3345],[1524960000000,20.3345],[1525046400000,20.3345]], 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: [[1522540800000, 20.391891],[1522540800000, 20.391891],[1522627200000, 20.391891],[1522713600000, 20.278653],[1522800000000, 20.487060],[1522886400000, 20.462382],[1522972800000, 20.408439],[1523059200000, 20.345938],[1523145600000, 20.345938],[1523232000000, 20.345938],[1523318400000, 20.345938],[1523404800000, 20.523074],[1523491200000, 20.548256],[1523577600000, 20.637352],[1523664000000, 20.784169],[1523750400000, 20.784169],[1523836800000, 20.784169],[1523923200000, 20.692766],[1524009600000, 20.779193],[1524096000000, 20.801349],[1524182400000, 20.808014],[1524268800000, 20.712901],[1524355200000, 20.712901],[1524441600000, 20.712901],[1524528000000, 20.430988],[1524614400000, 20.412650],[1524700800000, 20.383762],[1524787200000, 20.435857],[1524873600000, 20.334521],[1524960000000, 20.334521],[1525046400000, 20.334521]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });