$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1559347200000,6.98963],[1559433600000,6.98963],[1559520000000,6.98963],[1559606400000,7.03873],[1559692800000,7.14721],[1559779200000,7.08664],[1559865600000,7.0551],[1559952000000,7.01909],[1560038400000,7.01909],[1560124800000,7.01909],[1560211200000,6.99041],[1560297600000,6.97559],[1560384000000,7.01626],[1560470400000,7.0048],[1560556800000,6.99777],[1560643200000,6.99777],[1560729600000,6.99777],[1560816000000,6.99777],[1560902400000,6.93105],[1560988800000,6.91652],[1561075200000,7.00799],[1561161600000,6.97987],[1561248000000,6.97987],[1561334400000,6.97987],[1561420800000,7.01428],[1561507200000,7.00757],[1561593600000,6.97451],[1561680000000,7.0009],[1561766400000,7.0009],[1561852800000,7.0009]], 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, 6.989630],[1559347200000, 6.989630],[1559433600000, 6.989630],[1559520000000, 6.989630],[1559606400000, 7.038728],[1559692800000, 7.147207],[1559779200000, 7.086636],[1559865600000, 7.055098],[1559952000000, 7.019094],[1560038400000, 7.019094],[1560124800000, 7.019094],[1560211200000, 6.990411],[1560297600000, 6.975587],[1560384000000, 7.016256],[1560470400000, 7.004801],[1560556800000, 6.997771],[1560643200000, 6.997771],[1560729600000, 6.997771],[1560816000000, 6.997771],[1560902400000, 6.931051],[1560988800000, 6.916522],[1561075200000, 7.007990],[1561161600000, 6.979870],[1561248000000, 6.979870],[1561334400000, 6.979870],[1561420800000, 7.014280],[1561507200000, 7.007574],[1561593600000, 6.974510],[1561680000000, 7.000898],[1561766400000, 7.000898],[1561852800000, 7.000898]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });