$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1541030400000,4.26527],[1541116800000,4.30007],[1541203200000,4.30536],[1541289600000,4.30536],[1541376000000,4.30536],[1541462400000,4.27012],[1541548800000,4.28297],[1541635200000,4.29572],[1541721600000,4.27678],[1541808000000,4.24241],[1541894400000,4.24241],[1541980800000,4.24241],[1542067200000,4.21378],[1542153600000,4.21356],[1542240000000,4.21428],[1542326400000,4.20771],[1542412800000,4.22027],[1542499200000,4.22027],[1542585600000,4.22027],[1542672000000,4.25151],[1542758400000,4.24901],[1542844800000,4.2468],[1542931200000,4.24019],[1543017600000,4.22872],[1543104000000,4.22872],[1543190400000,4.22872],[1543276800000,4.24878],[1543363200000,4.26682],[1543449600000,4.27506],[1543536000000,4.33234]], 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, 4.265271],[1541030400000, 4.265271],[1541116800000, 4.300071],[1541203200000, 4.305356],[1541289600000, 4.305356],[1541376000000, 4.305356],[1541462400000, 4.270123],[1541548800000, 4.282967],[1541635200000, 4.295723],[1541721600000, 4.276781],[1541808000000, 4.242413],[1541894400000, 4.242413],[1541980800000, 4.242413],[1542067200000, 4.213783],[1542153600000, 4.213561],[1542240000000, 4.214282],[1542326400000, 4.207713],[1542412800000, 4.220267],[1542499200000, 4.220267],[1542585600000, 4.220267],[1542672000000, 4.251507],[1542758400000, 4.249015],[1542844800000, 4.246804],[1542931200000, 4.240187],[1543017600000, 4.228715],[1543104000000, 4.228715],[1543190400000, 4.228715],[1543276800000, 4.248781],[1543363200000, 4.266819],[1543449600000, 4.275061],[1543536000000, 4.332336]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });