$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1559347200000,1.47556],[1559433600000,1.47556],[1559520000000,1.47556],[1559606400000,1.48092],[1559692800000,1.49391],[1559779200000,1.48199],[1559865600000,1.47798],[1559952000000,1.46801],[1560038400000,1.46801],[1560124800000,1.46801],[1560211200000,1.45603],[1560297600000,1.45384],[1560384000000,1.45627],[1560470400000,1.45284],[1560556800000,1.45315],[1560643200000,1.45315],[1560729600000,1.45315],[1560816000000,1.45315],[1560902400000,1.44993],[1560988800000,1.44692],[1561075200000,1.44814],[1561161600000,1.44292],[1561248000000,1.44292],[1561334400000,1.44292],[1561420800000,1.43877],[1561507200000,1.44101],[1561593600000,1.44091],[1561680000000,1.44269],[1561766400000,1.44269],[1561852800000,1.44269]], 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, 1.475557],[1559347200000, 1.475557],[1559433600000, 1.475557],[1559520000000, 1.475557],[1559606400000, 1.480921],[1559692800000, 1.493910],[1559779200000, 1.481988],[1559865600000, 1.477983],[1559952000000, 1.468014],[1560038400000, 1.468014],[1560124800000, 1.468014],[1560211200000, 1.456033],[1560297600000, 1.453840],[1560384000000, 1.456271],[1560470400000, 1.452837],[1560556800000, 1.453152],[1560643200000, 1.453152],[1560729600000, 1.453152],[1560816000000, 1.453152],[1560902400000, 1.449930],[1560988800000, 1.446921],[1561075200000, 1.448142],[1561161600000, 1.442924],[1561248000000, 1.442924],[1561334400000, 1.442924],[1561420800000, 1.438769],[1561507200000, 1.441007],[1561593600000, 1.440912],[1561680000000, 1.442692],[1561766400000, 1.442692],[1561852800000, 1.442692]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });