$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1559347200000,0.070197],[1559433600000,0.070197],[1559520000000,0.070197],[1559606400000,0.070206],[1559692800000,0.070813],[1559779200000,0.070094],[1559865600000,0.069683],[1559952000000,0.069379],[1560038400000,0.069379],[1560124800000,0.069379],[1560211200000,0.068857],[1560297600000,0.068531],[1560384000000,0.068732],[1560470400000,0.068703],[1560556800000,0.068798],[1560643200000,0.068798],[1560729600000,0.068798],[1560816000000,0.068798],[1560902400000,0.068775],[1560988800000,0.068869],[1561075200000,0.069308],[1561161600000,0.069639],[1561248000000,0.069639],[1561334400000,0.069639],[1561420800000,0.069219],[1561507200000,0.069137],[1561593600000,0.069104],[1561680000000,0.068917],[1561766400000,0.068917],[1561852800000,0.068917]], 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, 0.070197],[1559347200000, 0.070197],[1559433600000, 0.070197],[1559520000000, 0.070197],[1559606400000, 0.070206],[1559692800000, 0.070813],[1559779200000, 0.070094],[1559865600000, 0.069683],[1559952000000, 0.069379],[1560038400000, 0.069379],[1560124800000, 0.069379],[1560211200000, 0.068857],[1560297600000, 0.068531],[1560384000000, 0.068732],[1560470400000, 0.068703],[1560556800000, 0.068798],[1560643200000, 0.068798],[1560729600000, 0.068798],[1560816000000, 0.068798],[1560902400000, 0.068775],[1560988800000, 0.068869],[1561075200000, 0.069308],[1561161600000, 0.069639],[1561248000000, 0.069639],[1561334400000, 0.069639],[1561420800000, 0.069219],[1561507200000, 0.069137],[1561593600000, 0.069104],[1561680000000, 0.068917],[1561766400000, 0.068917],[1561852800000, 0.068917]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });