$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1506816000000,4.21625],[1506902400000,4.21625],[1506988800000,4.2064],[1507075200000,4.21711],[1507161600000,4.24571],[1507248000000,4.22823],[1507334400000,4.20606],[1507420800000,4.20606],[1507507200000,4.20606],[1507593600000,4.1902],[1507680000000,4.21397],[1507766400000,4.21724],[1507852800000,4.24219],[1507939200000,4.24219],[1508025600000,4.24219],[1508112000000,4.24219],[1508198400000,4.24219],[1508284800000,4.18368],[1508371200000,4.17089],[1508457600000,4.21279],[1508544000000,4.2134],[1508630400000,4.2134],[1508716800000,4.2134],[1508803200000,null],[1508889600000,4.21406],[1508976000000,4.23874],[1509062400000,4.23599],[1509148800000,4.19172],[1509235200000,4.19172],[1509321600000,4.19172],[1509408000000,4.18684]], 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: [[1506816000000, 4.216247],[1506816000000, 4.216247],[1506902400000, 4.216247],[1506988800000, 4.206398],[1507075200000, 4.217112],[1507161600000, 4.245709],[1507248000000, 4.228231],[1507334400000, 4.206059],[1507420800000, 4.206059],[1507507200000, 4.206059],[1507593600000, 4.190195],[1507680000000, 4.213968],[1507766400000, 4.217239],[1507852800000, 4.242195],[1507939200000, 4.242195],[1508025600000, 4.242195],[1508112000000, 4.242195],[1508198400000, 4.242195],[1508284800000, 4.183683],[1508371200000, 4.170891],[1508457600000, 4.212794],[1508544000000, 4.213396],[1508630400000, 4.213396],[1508716800000, 4.213396],[1508889600000, 4.214063],[1508976000000, 4.238737],[1509062400000, 4.235991],[1509148800000, 4.191722],[1509235200000, 4.191722],[1509321600000, 4.191722],[1509408000000, 4.186842]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });