$(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: [[1504224000000,20.2338],[1504310400000,20.4328],[1504396800000,20.4328],[1504483200000,20.4328],[1504569600000,20.6159],[1504656000000,20.7084],[1504742400000,20.7201],[1504828800000,20.8552],[1504915200000,21.1303],[1505001600000,21.1303],[1505088000000,21.1303],[1505174400000,20.9203],[1505260800000,20.9123],[1505347200000,20.9543],[1505433600000,20.9004],[1505520000000,21.0397],[1505606400000,21.0397],[1505692800000,21.0397],[1505779200000,20.9277],[1505865600000,20.8956],[1505952000000,null],[1506038400000,null],[1506124800000,null],[1506211200000,null],[1506297600000,null],[1506384000000,null],[1506470400000,null],[1506556800000,null],[1506643200000,20.7497],[1506729600000,20.815]], 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: [[1504224000000, 20.233820],[1504224000000, 20.233820],[1504310400000, 20.432777],[1504396800000, 20.432777],[1504483200000, 20.432777],[1504569600000, 20.615902],[1504656000000, 20.708374],[1504742400000, 20.720125],[1504828800000, 20.855159],[1504915200000, 21.130297],[1505001600000, 21.130297],[1505088000000, 21.130297],[1505174400000, 20.920309],[1505260800000, 20.912253],[1505347200000, 20.954326],[1505433600000, 20.900421],[1505520000000, 21.039657],[1505606400000, 21.039657],[1505692800000, 21.039657],[1505779200000, 20.927728],[1505865600000, 20.895564],[1506643200000, 20.749664],[1506729600000, 20.814973]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });