$(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: [[1512086400000,4.32387],[1512172800000,4.32062],[1512259200000,4.32062],[1512345600000,4.32062],[1512432000000,4.33913],[1512518400000,4.32462],[1512604800000,4.30455],[1512691200000,4.29522],[1512777600000,4.27749],[1512864000000,4.27749],[1512950400000,4.27749],[1513036800000,4.30042],[1513123200000,4.2966],[1513209600000,4.29943],[1513296000000,4.36193],[1513382400000,4.38268],[1513468800000,4.38268],[1513555200000,4.38268],[1513641600000,4.41657],[1513728000000,4.42905],[1513814400000,4.43308],[1513900800000,4.4373],[1513987200000,4.45041],[1514073600000,4.45041],[1514160000000,4.45041],[1514246400000,4.45041],[1514332800000,4.4494],[1514419200000,4.46537],[1514505600000,4.49875],[1514592000000,4.49875],[1514678400000,4.49875]], 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: [[1512086400000, 4.323873],[1512086400000, 4.323873],[1512172800000, 4.320621],[1512259200000, 4.320621],[1512345600000, 4.320621],[1512432000000, 4.339135],[1512518400000, 4.324622],[1512604800000, 4.304549],[1512691200000, 4.295220],[1512777600000, 4.277489],[1512864000000, 4.277489],[1512950400000, 4.277489],[1513036800000, 4.300417],[1513123200000, 4.296600],[1513209600000, 4.299435],[1513296000000, 4.361930],[1513382400000, 4.382676],[1513468800000, 4.382676],[1513555200000, 4.382676],[1513641600000, 4.416571],[1513728000000, 4.429047],[1513814400000, 4.433083],[1513900800000, 4.437298],[1513987200000, 4.450415],[1514073600000, 4.450415],[1514160000000, 4.450415],[1514246400000, 4.450415],[1514332800000, 4.449404],[1514419200000, 4.465373],[1514505600000, 4.498747],[1514592000000, 4.498747],[1514678400000, 4.498747]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });