$(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: [[1559347200000,4.00986],[1559433600000,4.00986],[1559520000000,4.00986],[1559606400000,4.03709],[1559692800000,4.0964],[1559779200000,4.05924],[1559865600000,4.04185],[1559952000000,4.01464],[1560038400000,4.01464],[1560124800000,4.01464],[1560211200000,3.99111],[1560297600000,3.98602],[1560384000000,4.00317],[1560470400000,3.99344],[1560556800000,3.98579],[1560643200000,3.98579],[1560729600000,3.98579],[1560816000000,3.98579],[1560902400000,3.95339],[1560988800000,3.95238],[1561075200000,3.99448],[1561161600000,3.98129],[1561248000000,3.98129],[1561334400000,3.98129],[1561420800000,3.99693],[1561507200000,3.99528],[1561593600000,3.98257],[1561680000000,3.98766],[1561766400000,3.98766],[1561852800000,3.98766]], 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, 4.009865],[1559347200000, 4.009865],[1559433600000, 4.009865],[1559520000000, 4.009865],[1559606400000, 4.037089],[1559692800000, 4.096396],[1559779200000, 4.059239],[1559865600000, 4.041848],[1559952000000, 4.014643],[1560038400000, 4.014643],[1560124800000, 4.014643],[1560211200000, 3.991111],[1560297600000, 3.986023],[1560384000000, 4.003169],[1560470400000, 3.993444],[1560556800000, 3.985795],[1560643200000, 3.985795],[1560729600000, 3.985795],[1560816000000, 3.985795],[1560902400000, 3.953387],[1560988800000, 3.952378],[1561075200000, 3.994482],[1561161600000, 3.981285],[1561248000000, 3.981285],[1561334400000, 3.981285],[1561420800000, 3.996927],[1561507200000, 3.995276],[1561593600000, 3.982565],[1561680000000, 3.987663],[1561766400000, 3.987663],[1561852800000, 3.987663]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });