$(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: [[1541030400000,3.05965],[1541116800000,3.10982],[1541203200000,3.11465],[1541289600000,3.11465],[1541376000000,3.11465],[1541462400000,3.08454],[1541548800000,3.08765],[1541635200000,3.10176],[1541721600000,3.11169],[1541808000000,3.08295],[1541894400000,3.08295],[1541980800000,3.08295],[1542067200000,3.06057],[1542153600000,3.07366],[1542240000000,3.06251],[1542326400000,3.06171],[1542412800000,3.06868],[1542499200000,3.06868],[1542585600000,3.06868],[1542672000000,3.08582],[1542758400000,3.07458],[1542844800000,3.07228],[1542931200000,3.07066],[1543017600000,3.0622],[1543104000000,3.0622],[1543190400000,3.0622],[1543276800000,3.07986],[1543363200000,3.09636],[1543449600000,3.11074],[1543536000000,3.13354]], 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, 3.059645],[1541030400000, 3.059645],[1541116800000, 3.109817],[1541203200000, 3.114654],[1541289600000, 3.114654],[1541376000000, 3.114654],[1541462400000, 3.084538],[1541548800000, 3.087652],[1541635200000, 3.101762],[1541721600000, 3.111687],[1541808000000, 3.082949],[1541894400000, 3.082949],[1541980800000, 3.082949],[1542067200000, 3.060568],[1542153600000, 3.073662],[1542240000000, 3.062511],[1542326400000, 3.061714],[1542412800000, 3.068679],[1542499200000, 3.068679],[1542585600000, 3.068679],[1542672000000, 3.085821],[1542758400000, 3.074585],[1542844800000, 3.072276],[1542931200000, 3.070663],[1543017600000, 3.062200],[1543104000000, 3.062200],[1543190400000, 3.062200],[1543276800000, 3.079861],[1543363200000, 3.096362],[1543449600000, 3.110742],[1543536000000, 3.133542]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });