$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1559347200000,26.8547],[1559433600000,26.8547],[1559520000000,26.8547],[1559606400000,26.9548],[1559692800000,27.2069],[1559779200000,26.9301],[1559865600000,26.7951],[1559952000000,26.5957],[1560038400000,26.5957],[1560124800000,26.5957],[1560211200000,26.375],[1560297600000,26.299],[1560384000000,26.4019],[1560470400000,26.4171],[1560556800000,26.4219],[1560643200000,26.4219],[1560729600000,26.4219],[1560816000000,26.4219],[1560902400000,26.3884],[1560988800000,26.3343],[1561075200000,26.3759],[1561161600000,26.2664],[1561248000000,26.2664],[1561334400000,26.2664],[1561420800000,26.1912],[1561507200000,26.191],[1561593600000,26.1664],[1561680000000,26.1779],[1561766400000,26.1779],[1561852800000,26.1779]], 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, 26.854695],[1559347200000, 26.854695],[1559433600000, 26.854695],[1559520000000, 26.854695],[1559606400000, 26.954834],[1559692800000, 27.206934],[1559779200000, 26.930098],[1559865600000, 26.795094],[1559952000000, 26.595721],[1560038400000, 26.595721],[1560124800000, 26.595721],[1560211200000, 26.375022],[1560297600000, 26.298950],[1560384000000, 26.401893],[1560470400000, 26.417080],[1560556800000, 26.421945],[1560643200000, 26.421945],[1560729600000, 26.421945],[1560816000000, 26.421945],[1560902400000, 26.388427],[1560988800000, 26.334256],[1561075200000, 26.375876],[1561161600000, 26.266416],[1561248000000, 26.266416],[1561334400000, 26.266416],[1561420800000, 26.191201],[1561507200000, 26.191023],[1561593600000, 26.166382],[1561680000000, 26.177939],[1561766400000, 26.177939],[1561852800000, 26.177939]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });