$(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: [[1464739200000,18.25],[1464825600000,18.246],[1464912000000,18.0635],[1464998400000,18.1122],[1465084800000,18.1122],[1465171200000,18.1122],[1465257600000,18.3928],[1465344000000,18.5626],[1465430400000,18.6377],[1465516800000,18.5967],[1465603200000,18.5134],[1465689600000,18.5134],[1465776000000,18.5134],[1465862400000,18.4756],[1465948800000,18.3066],[1466035200000,null],[1466121600000,18.2937],[1466208000000,18.4012],[1466294400000,18.4012],[1466380800000,18.4012],[1466467200000,18.4012],[1466553600000,18.6847],[1466640000000,18.6872],[1466726400000,18.8175],[1466812800000,18.4607],[1466899200000,18.4607],[1466985600000,18.4607],[1467072000000,18.4607],[1467158400000,18.4607],[1467244800000,18.4854]], 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: [[1464739200000, 18.250021],[1464739200000, 18.250021],[1464825600000, 18.245964],[1464912000000, 18.063477],[1464998400000, 18.112172],[1465084800000, 18.112172],[1465171200000, 18.112172],[1465257600000, 18.392828],[1465344000000, 18.562591],[1465430400000, 18.637655],[1465516800000, 18.596746],[1465603200000, 18.513385],[1465689600000, 18.513385],[1465776000000, 18.513385],[1465862400000, 18.475643],[1465948800000, 18.306622],[1466121600000, 18.293746],[1466208000000, 18.401247],[1466294400000, 18.401247],[1466380800000, 18.401247],[1466467200000, 18.401247],[1466553600000, 18.684695],[1466640000000, 18.687222],[1466726400000, 18.817509],[1466812800000, 18.460697],[1466899200000, 18.460697],[1466985600000, 18.460697],[1467072000000, 18.460697],[1467158400000, 18.460697],[1467244800000, 18.485373]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });