$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1522540800000,38.2417],[1522627200000,38.2417],[1522713600000,38.0483],[1522800000000,38.2427],[1522886400000,38.1226],[1522972800000,37.8279],[1523059200000,37.6911],[1523145600000,37.6911],[1523232000000,37.6911],[1523318400000,37.6911],[1523404800000,37.7586],[1523491200000,37.7504],[1523577600000,37.7995],[1523664000000,37.9966],[1523750400000,37.9966],[1523836800000,37.9966],[1523923200000,38.002],[1524009600000,38.0152],[1524096000000,38.0745],[1524182400000,38.1871],[1524268800000,38.0003],[1524355200000,38.0003],[1524441600000,38.0003],[1524528000000,37.7955],[1524614400000,37.8314],[1524700800000,37.9447],[1524787200000,37.8663],[1524873600000,37.664],[1524960000000,37.664],[1525046400000,37.664]], 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, 38.241655],[1522540800000, 38.241655],[1522627200000, 38.241655],[1522713600000, 38.048265],[1522800000000, 38.242706],[1522886400000, 38.122569],[1522972800000, 37.827863],[1523059200000, 37.691074],[1523145600000, 37.691074],[1523232000000, 37.691074],[1523318400000, 37.691074],[1523404800000, 37.758584],[1523491200000, 37.750447],[1523577600000, 37.799537],[1523664000000, 37.996552],[1523750400000, 37.996552],[1523836800000, 37.996552],[1523923200000, 38.001991],[1524009600000, 38.015197],[1524096000000, 38.074493],[1524182400000, 38.187070],[1524268800000, 38.000260],[1524355200000, 38.000260],[1524441600000, 38.000260],[1524528000000, 37.795473],[1524614400000, 37.831423],[1524700800000, 37.944682],[1524787200000, 37.866279],[1524873600000, 37.663996],[1524960000000, 37.663996],[1525046400000, 37.663996]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });