$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1541030400000,38.8638],[1541116800000,39.0307],[1541203200000,39.1251],[1541289600000,39.1251],[1541376000000,39.1251],[1541462400000,38.8298],[1541548800000,38.8083],[1541635200000,38.8409],[1541721600000,38.7626],[1541808000000,38.6192],[1541894400000,38.6192],[1541980800000,38.6192],[1542067200000,38.4857],[1542153600000,38.5109],[1542240000000,38.4327],[1542326400000,38.3749],[1542412800000,38.3664],[1542499200000,38.3664],[1542585600000,38.3664],[1542672000000,38.5005],[1542758400000,38.521],[1542844800000,38.4845],[1542931200000,38.4443],[1543017600000,38.5135],[1543104000000,38.5135],[1543190400000,38.5135],[1543276800000,38.6233],[1543363200000,38.816],[1543449600000,39.0019],[1543536000000,39.2734]], 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, 38.863771],[1541030400000, 38.863771],[1541116800000, 39.030678],[1541203200000, 39.125097],[1541289600000, 39.125097],[1541376000000, 39.125097],[1541462400000, 38.829801],[1541548800000, 38.808313],[1541635200000, 38.840881],[1541721600000, 38.762581],[1541808000000, 38.619207],[1541894400000, 38.619207],[1541980800000, 38.619207],[1542067200000, 38.485737],[1542153600000, 38.510891],[1542240000000, 38.432736],[1542326400000, 38.374900],[1542412800000, 38.366382],[1542499200000, 38.366382],[1542585600000, 38.366382],[1542672000000, 38.500501],[1542758400000, 38.521025],[1542844800000, 38.484526],[1542931200000, 38.444259],[1543017600000, 38.513526],[1543104000000, 38.513526],[1543190400000, 38.513526],[1543276800000, 38.623283],[1543363200000, 38.816037],[1543449600000, 39.001852],[1543536000000, 39.273393]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });