$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1541030400000,0.42867],[1541116800000,0.4289],[1541203200000,0.42899],[1541289600000,0.42899],[1541376000000,0.42899],[1541462400000,0.42719],[1541548800000,0.42363],[1541635200000,0.42209],[1541721600000,0.42176],[1541808000000,0.41723],[1541894400000,0.41723],[1541980800000,0.41723],[1542067200000,0.41324],[1542153600000,0.4125],[1542240000000,0.40942],[1542326400000,0.41693],[1542412800000,0.42057],[1542499200000,0.42057],[1542585600000,0.42057],[1542672000000,0.42063],[1542758400000,0.42331],[1542844800000,0.42116],[1542931200000,0.42291],[1543017600000,0.42329],[1543104000000,0.42329],[1543190400000,0.42329],[1543276800000,0.41948],[1543363200000,0.42086],[1543449600000,0.42228],[1543536000000,0.42607]], 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, 0.428670],[1541030400000, 0.428670],[1541116800000, 0.428900],[1541203200000, 0.428990],[1541289600000, 0.428990],[1541376000000, 0.428990],[1541462400000, 0.427190],[1541548800000, 0.423630],[1541635200000, 0.422090],[1541721600000, 0.421760],[1541808000000, 0.417230],[1541894400000, 0.417230],[1541980800000, 0.417230],[1542067200000, 0.413240],[1542153600000, 0.412500],[1542240000000, 0.409420],[1542326400000, 0.416930],[1542412800000, 0.420570],[1542499200000, 0.420570],[1542585600000, 0.420570],[1542672000000, 0.420630],[1542758400000, 0.423310],[1542844800000, 0.421160],[1542931200000, 0.422910],[1543017600000, 0.423290],[1543104000000, 0.423290],[1543190400000, 0.423290],[1543276800000, 0.419480],[1543363200000, 0.420860],[1543449600000, 0.422280],[1543536000000, 0.426070]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });