$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1559347200000,3.88678],[1559433600000,3.88678],[1559520000000,3.88678],[1559606400000,3.90263],[1559692800000,3.93784],[1559779200000,3.89886],[1559865600000,3.87614],[1559952000000,3.84904],[1560038400000,3.84904],[1560124800000,3.84904],[1560211200000,3.80354],[1560297600000,3.80487],[1560384000000,3.81575],[1560470400000,3.81632],[1560556800000,3.81609],[1560643200000,3.81609],[1560729600000,3.81609],[1560816000000,3.81609],[1560902400000,3.80981],[1560988800000,3.81411],[1561075200000,3.84806],[1561161600000,3.82084],[1561248000000,3.82084],[1561334400000,3.82084],[1561420800000,3.80864],[1561507200000,3.80695],[1561593600000,3.80479],[1561680000000,3.80623],[1561766400000,3.80623],[1561852800000,3.80623]], 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, 3.886777],[1559347200000, 3.886777],[1559433600000, 3.886777],[1559520000000, 3.886777],[1559606400000, 3.902629],[1559692800000, 3.937836],[1559779200000, 3.898862],[1559865600000, 3.876137],[1559952000000, 3.849044],[1560038400000, 3.849044],[1560124800000, 3.849044],[1560211200000, 3.803536],[1560297600000, 3.804866],[1560384000000, 3.815749],[1560470400000, 3.816319],[1560556800000, 3.816085],[1560643200000, 3.816085],[1560729600000, 3.816085],[1560816000000, 3.816085],[1560902400000, 3.809815],[1560988800000, 3.814107],[1561075200000, 3.848056],[1561161600000, 3.820840],[1561248000000, 3.820840],[1561334400000, 3.820840],[1561420800000, 3.808645],[1561507200000, 3.806953],[1561593600000, 3.804789],[1561680000000, 3.806227],[1561766400000, 3.806227],[1561852800000, 3.806227]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });