$(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: 'Курс AUD, грн'}, 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: 'Курс AUD', data: [[1514764800000,21.8496],[1514851200000,21.8496],[1514937600000,21.8496],[1515024000000,21.8611],[1515110400000,21.9497],[1515196800000,22.115],[1515283200000,22.115],[1515369600000,22.115],[1515456000000,22.115],[1515542400000,22.0785],[1515628800000,22.2198],[1515715200000,22.3697],[1515801600000,22.4654],[1515888000000,22.4654],[1515974400000,22.4654],[1516060800000,22.7242],[1516147200000,22.7857],[1516233600000,22.8427],[1516320000000,22.9961],[1516406400000,23.1011],[1516492800000,23.1011],[1516579200000,23.1011],[1516665600000,23.1184],[1516752000000,23.0111],[1516838400000,23.2884],[1516924800000,23.2219],[1517011200000,23.0839],[1517097600000,23.0839],[1517184000000,23.0839],[1517270400000,22.8508],[1517356800000,22.6717]], 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: [[1514764800000, 21.849592],[1514764800000, 21.849592],[1514851200000, 21.849592],[1514937600000, 21.849592],[1515024000000, 21.861136],[1515110400000, 21.949686],[1515196800000, 22.115038],[1515283200000, 22.115038],[1515369600000, 22.115038],[1515456000000, 22.115038],[1515542400000, 22.078540],[1515628800000, 22.219839],[1515715200000, 22.369747],[1515801600000, 22.465406],[1515888000000, 22.465406],[1515974400000, 22.465406],[1516060800000, 22.724194],[1516147200000, 22.785682],[1516233600000, 22.842680],[1516320000000, 22.996050],[1516406400000, 23.101112],[1516492800000, 23.101112],[1516579200000, 23.101112],[1516665600000, 23.118425],[1516752000000, 23.011078],[1516838400000, 23.288374],[1516924800000, 23.221923],[1517011200000, 23.083931],[1517097600000, 23.083931],[1517184000000, 23.083931],[1517270400000, 22.850844],[1517356800000, 22.671697]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });