$(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: 'Курс JPY, грн'}, 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: 'Курс JPY', data: [[1541030400000,0.248341],[1541116800000,0.249613],[1541203200000,0.249199],[1541289600000,0.249199],[1541376000000,0.249199],[1541462400000,0.24729],[1541548800000,0.247065],[1541635200000,0.246464],[1541721600000,0.2456],[1541808000000,0.244823],[1541894400000,0.244823],[1541980800000,0.244823],[1542067200000,0.245192],[1542153600000,0.245002],[1542240000000,0.24446],[1542326400000,0.244997],[1542412800000,0.245313],[1542499200000,0.245313],[1542585600000,0.245313],[1542672000000,0.246155],[1542758400000,0.247071],[1542844800000,0.24557],[1542931200000,0.245641],[1543017600000,0.24638],[1543104000000,0.24638],[1543190400000,0.24638],[1543276800000,0.246317],[1543363200000,0.247456],[1543449600000,0.248298],[1543536000000,0.25063]], 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.248341],[1541030400000, 0.248341],[1541116800000, 0.249613],[1541203200000, 0.249199],[1541289600000, 0.249199],[1541376000000, 0.249199],[1541462400000, 0.247290],[1541548800000, 0.247065],[1541635200000, 0.246464],[1541721600000, 0.245600],[1541808000000, 0.244823],[1541894400000, 0.244823],[1541980800000, 0.244823],[1542067200000, 0.245192],[1542153600000, 0.245002],[1542240000000, 0.244460],[1542326400000, 0.244997],[1542412800000, 0.245313],[1542499200000, 0.245313],[1542585600000, 0.245313],[1542672000000, 0.246155],[1542758400000, 0.247071],[1542844800000, 0.245570],[1542931200000, 0.245641],[1543017600000, 0.246380],[1543104000000, 0.246380],[1543190400000, 0.246380],[1543276800000, 0.246317],[1543363200000, 0.247456],[1543449600000, 0.248298],[1543536000000, 0.250630]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });