$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1522540800000,3.15169],[1522627200000,3.15169],[1522713600000,3.13419],[1522800000000,3.14723],[1522886400000,3.12484],[1522972800000,3.09847],[1523059200000,3.09191],[1523145600000,3.09191],[1523232000000,3.09191],[1523318400000,3.09191],[1523404800000,3.12171],[1523491200000,3.1213],[1523577600000,3.08736],[1523664000000,3.10006],[1523750400000,3.10006],[1523836800000,3.10006],[1523923200000,3.10178],[1524009600000,3.10169],[1524096000000,3.11361],[1524182400000,3.12908],[1524268800000,3.10724],[1524355200000,3.10724],[1524441600000,3.10724],[1524528000000,3.0813],[1524614400000,3.08073],[1524700800000,3.07145],[1524787200000,3.05488],[1524873600000,3.00616],[1524960000000,3.00616],[1525046400000,3.00616]], 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, 3.151689],[1522540800000, 3.151689],[1522627200000, 3.151689],[1522713600000, 3.134187],[1522800000000, 3.147233],[1522886400000, 3.124839],[1522972800000, 3.098466],[1523059200000, 3.091908],[1523145600000, 3.091908],[1523232000000, 3.091908],[1523318400000, 3.091908],[1523404800000, 3.121710],[1523491200000, 3.121302],[1523577600000, 3.087356],[1523664000000, 3.100065],[1523750400000, 3.100065],[1523836800000, 3.100065],[1523923200000, 3.101777],[1524009600000, 3.101691],[1524096000000, 3.113614],[1524182400000, 3.129082],[1524268800000, 3.107245],[1524355200000, 3.107245],[1524441600000, 3.107245],[1524528000000, 3.081296],[1524614400000, 3.080732],[1524700800000, 3.071451],[1524787200000, 3.054875],[1524873600000, 3.006156],[1524960000000, 3.006156],[1525046400000, 3.006156]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });