$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1541030400000,1.22772],[1541116800000,1.23962],[1541203200000,1.2458],[1541289600000,1.2458],[1541376000000,1.2458],[1541462400000,1.23243],[1541548800000,1.23671],[1541635200000,1.23822],[1541721600000,1.23241],[1541808000000,1.22015],[1541894400000,1.22015],[1541980800000,1.22015],[1542067200000,1.21169],[1542153600000,1.21202],[1542240000000,1.20979],[1542326400000,1.20834],[1542412800000,1.21188],[1542499200000,1.21188],[1542585600000,1.21188],[1542672000000,1.21965],[1542758400000,1.21808],[1542844800000,1.21869],[1542931200000,1.21734],[1543017600000,1.21576],[1543104000000,1.21576],[1543190400000,1.21576],[1543276800000,1.22313],[1543363200000,1.22859],[1543449600000,1.23014],[1543536000000,1.24499]], 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.227718],[1541030400000, 1.227718],[1541116800000, 1.239625],[1541203200000, 1.245801],[1541289600000, 1.245801],[1541376000000, 1.245801],[1541462400000, 1.232431],[1541548800000, 1.236710],[1541635200000, 1.238224],[1541721600000, 1.232414],[1541808000000, 1.220152],[1541894400000, 1.220152],[1541980800000, 1.220152],[1542067200000, 1.211686],[1542153600000, 1.212022],[1542240000000, 1.209794],[1542326400000, 1.208343],[1542412800000, 1.211883],[1542499200000, 1.211883],[1542585600000, 1.211883],[1542672000000, 1.219654],[1542758400000, 1.218082],[1542844800000, 1.218690],[1542931200000, 1.217337],[1543017600000, 1.215760],[1543104000000, 1.215760],[1543190400000, 1.215760],[1543276800000, 1.223127],[1543363200000, 1.228592],[1543449600000, 1.230141],[1543536000000, 1.244994]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });