$(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: [[1561939200000,3.80623],[1562025600000,3.83003],[1562112000000,3.80729],[1562198400000,3.78524],[1562284800000,3.76487],[1562371200000,3.73923],[1562457600000,3.73923],[1562544000000,3.73923],[1562630400000,3.72058],[1562716800000,3.70172],[1562803200000,3.73392],[1562889600000,3.7582],[1562976000000,3.74372],[1563062400000,3.74372],[1563148800000,3.74372],[1563235200000,3.74367],[1563321600000,3.76065],[1563408000000,3.7604],[1563494400000,3.78334],[1563580800000,3.7531],[1563667200000,3.7531],[1563753600000,3.7531],[1563840000000,3.72677],[1563926400000,3.72599],[1564012800000,3.71144],[1564099200000,3.70835],[1564185600000,3.69862],[1564272000000,3.69862],[1564358400000,3.69862],[1564444800000,3.66329],[1564531200000,3.64513]], 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: [[1561939200000, 3.806227],[1561939200000, 3.806227],[1562025600000, 3.830034],[1562112000000, 3.807290],[1562198400000, 3.785239],[1562284800000, 3.764874],[1562371200000, 3.739231],[1562457600000, 3.739231],[1562544000000, 3.739231],[1562630400000, 3.720579],[1562716800000, 3.701720],[1562803200000, 3.733918],[1562889600000, 3.758196],[1562976000000, 3.743722],[1563062400000, 3.743722],[1563148800000, 3.743722],[1563235200000, 3.743669],[1563321600000, 3.760650],[1563408000000, 3.760399],[1563494400000, 3.783343],[1563580800000, 3.753099],[1563667200000, 3.753099],[1563753600000, 3.753099],[1563840000000, 3.726771],[1563926400000, 3.725988],[1564012800000, 3.711438],[1564099200000, 3.708347],[1564185600000, 3.698621],[1564272000000, 3.698621],[1564358400000, 3.698621],[1564444800000, 3.663285],[1564531200000, 3.645130]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });