$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1559347200000,19.4731],[1559433600000,19.4731],[1559520000000,19.4731],[1559606400000,19.6692],[1559692800000,19.8698],[1559779200000,19.7313],[1559865600000,19.6494],[1559952000000,19.4596],[1560038400000,19.4596],[1560124800000,19.4596],[1560211200000,19.2884],[1560297600000,19.2739],[1560384000000,19.3557],[1560470400000,19.3362],[1560556800000,19.3237],[1560643200000,19.3237],[1560729600000,19.3237],[1560816000000,19.3237],[1560902400000,19.2468],[1560988800000,19.2605],[1561075200000,19.4465],[1561161600000,19.3484],[1561248000000,19.3484],[1561334400000,19.3484],[1561420800000,19.3417],[1561507200000,19.3539],[1561593600000,19.3217],[1561680000000,19.3363],[1561766400000,19.3363],[1561852800000,19.3363]], 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, 19.473059],[1559347200000, 19.473059],[1559433600000, 19.473059],[1559520000000, 19.473059],[1559606400000, 19.669221],[1559692800000, 19.869756],[1559779200000, 19.731327],[1559865600000, 19.649387],[1559952000000, 19.459568],[1560038400000, 19.459568],[1560124800000, 19.459568],[1560211200000, 19.288431],[1560297600000, 19.273865],[1560384000000, 19.355690],[1560470400000, 19.336213],[1560556800000, 19.323717],[1560643200000, 19.323717],[1560729600000, 19.323717],[1560816000000, 19.323717],[1560902400000, 19.246794],[1560988800000, 19.260459],[1561075200000, 19.446533],[1561161600000, 19.348442],[1561248000000, 19.348442],[1561334400000, 19.348442],[1561420800000, 19.341665],[1561507200000, 19.353927],[1561593600000, 19.321663],[1561680000000, 19.336268],[1561766400000, 19.336268],[1561852800000, 19.336268]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });