$(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: [[1541030400000,1.64184],[1541116800000,1.64363],[1541203200000,1.64192],[1541289600000,1.64192],[1541376000000,1.64192],[1541462400000,1.63674],[1541548800000,1.63484],[1541635200000,1.63348],[1541721600000,1.6395],[1541808000000,1.63881],[1541894400000,1.63881],[1541980800000,1.63881],[1542067200000,1.64126],[1542153600000,1.63938],[1542240000000,1.63213],[1542326400000,1.6268],[1542412800000,1.62231],[1542499200000,1.62231],[1542585600000,1.62231],[1542672000000,1.62156],[1542758400000,1.62178],[1542844800000,1.62089],[1542931200000,1.61746],[1543017600000,1.61814],[1543104000000,1.61814],[1543190400000,1.61814],[1543276800000,1.62251],[1543363200000,1.6327],[1543449600000,1.63979],[1543536000000,1.64742]], 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: [[1541030400000, 1.641841],[1541030400000, 1.641841],[1541116800000, 1.643631],[1541203200000, 1.641920],[1541289600000, 1.641920],[1541376000000, 1.641920],[1541462400000, 1.636743],[1541548800000, 1.634835],[1541635200000, 1.633484],[1541721600000, 1.639499],[1541808000000, 1.638815],[1541894400000, 1.638815],[1541980800000, 1.638815],[1542067200000, 1.641261],[1542153600000, 1.639381],[1542240000000, 1.632130],[1542326400000, 1.626804],[1542412800000, 1.622310],[1542499200000, 1.622310],[1542585600000, 1.622310],[1542672000000, 1.621560],[1542758400000, 1.621779],[1542844800000, 1.620889],[1542931200000, 1.617465],[1543017600000, 1.618144],[1543104000000, 1.618144],[1543190400000, 1.618144],[1543276800000, 1.622512],[1543363200000, 1.632702],[1543449600000, 1.639793],[1543536000000, 1.647417]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });