$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1574553600000,14.2316],[1574640000000,null],[1574726400000,null],[1574812800000,null],[1574899200000,null],[1574985600000,null],[1575072000000,null],[1575158400000,null],[1575244800000,null],[1575331200000,null],[1575417600000,null],[1575504000000,null],[1575590400000,null],[1575676800000,null],[1575763200000,null],[1575849600000,null],[1575936000000,null],[1576022400000,null],[1576108800000,null],[1576195200000,null],[1576281600000,null],[1576368000000,null],[1576454400000,null],[1576540800000,null],[1576627200000,null],[1576713600000,null],[1576800000000,null],[1576886400000,null],[1576972800000,null],[1577059200000,null],[1577145600000,null],[1577232000000,null],[1577318400000,null],[1577404800000,13.6795]], 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: [[1573776000000, 14.231582],[1573776000000, 14.231582],[1576368000000, 13.679503]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });