$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1522540800000,1.59743],[1522627200000,1.59743],[1522713600000,1.58951],[1522800000000,1.60265],[1522886400000,1.60162],[1522972800000,1.58911],[1523059200000,1.58993],[1523145600000,1.58993],[1523232000000,1.58993],[1523318400000,1.58993],[1523404800000,1.58579],[1523491200000,1.5835],[1523577600000,1.58516],[1523664000000,1.59361],[1523750400000,1.59361],[1523836800000,1.59361],[1523923200000,1.59],[1524009600000,1.5893],[1524096000000,1.59225],[1524182400000,1.59645],[1524268800000,1.58969],[1524355200000,1.58969],[1524441600000,1.58969],[1524528000000,1.58555],[1524614400000,1.58783],[1524700800000,1.59041],[1524787200000,1.58714],[1524873600000,1.58506],[1524960000000,1.58506],[1525046400000,1.58506]], 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, 1.597426],[1522540800000, 1.597426],[1522627200000, 1.597426],[1522713600000, 1.589511],[1522800000000, 1.602647],[1522886400000, 1.601621],[1522972800000, 1.589113],[1523059200000, 1.589928],[1523145600000, 1.589928],[1523232000000, 1.589928],[1523318400000, 1.589928],[1523404800000, 1.585788],[1523491200000, 1.583504],[1523577600000, 1.585162],[1523664000000, 1.593614],[1523750400000, 1.593614],[1523836800000, 1.593614],[1523923200000, 1.590005],[1524009600000, 1.589305],[1524096000000, 1.592250],[1524182400000, 1.596448],[1524268800000, 1.589685],[1524355200000, 1.589685],[1524441600000, 1.589685],[1524528000000, 1.585548],[1524614400000, 1.587829],[1524700800000, 1.590410],[1524787200000, 1.587141],[1524873600000, 1.585060],[1524960000000, 1.585060],[1525046400000, 1.585060]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });