$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1559347200000,29.9457],[1559433600000,29.9457],[1559520000000,29.9457],[1559606400000,30.149],[1559692800000,30.5915],[1559779200000,30.3152],[1559865600000,30.1874],[1559952000000,29.9814],[1560038400000,29.9814],[1560124800000,29.9814],[1560211200000,29.8064],[1560297600000,29.7704],[1560384000000,29.8949],[1560470400000,29.8222],[1560556800000,29.7643],[1560643200000,29.7643],[1560729600000,29.7643],[1560816000000,29.7643],[1560902400000,29.5207],[1560988800000,29.5128],[1561075200000,29.8232],[1561161600000,29.7231],[1561248000000,29.7231],[1561334400000,29.7231],[1561420800000,29.8423],[1561507200000,29.8263],[1561593600000,29.7302],[1561680000000,29.7643],[1561766400000,29.7643],[1561852800000,29.7643]], 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: [[1559347200000, 29.945670],[1559347200000, 29.945670],[1559433600000, 29.945670],[1559520000000, 29.945670],[1559606400000, 30.148982],[1559692800000, 30.591477],[1559779200000, 30.315211],[1559865600000, 30.187353],[1559952000000, 29.981356],[1560038400000, 29.981356],[1560124800000, 29.981356],[1560211200000, 29.806412],[1560297600000, 29.770411],[1560384000000, 29.894863],[1560470400000, 29.822242],[1560556800000, 29.764321],[1560643200000, 29.764321],[1560729600000, 29.764321],[1560816000000, 29.764321],[1560902400000, 29.520733],[1560988800000, 29.512801],[1561075200000, 29.823203],[1561161600000, 29.723076],[1561248000000, 29.723076],[1561334400000, 29.723076],[1561420800000, 29.842254],[1561507200000, 29.826337],[1561593600000, 29.730243],[1561680000000, 29.764317],[1561766400000, 29.764317],[1561852800000, 29.764317]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });