google.charts.load('current', {packages: ['corechart', 'line']}); var charts = [drawMarketPrice]; charts.map(google.charts.setOnLoadCallback); function drawMarketPrice() { var data = new google.visualization.DataTable(); data.addColumn('date', 'X'); data.addColumn('number', 'USD'); data.addRows([ [new Date(1683158400000), 0.11001908199305909437],[new Date(1683417600000), 0.10067719641354202305],[new Date(1683504000000), 0.09906294105914138817],[new Date(1684368000000), 0.09048376732409780977],[new Date(1710028800000), 0.20952283805926784604],[new Date(1710115200000), 0.21334368249626892421],[new Date(1710201600000), 0.21190524276012909916],[new Date(1710288000000), 0.21501312464140727849],[new Date(1710374400000), 0.20109934300949072329],[new Date(1710460800000), 0.19490195976635100440],[new Date(1711065600000), 0.16923552895295794078],[new Date(1711152000000), 0.16957703659193012034],[new Date(1711238400000), 0.16911460842760379945],[new Date(1711497600000), 0.17318077292380629340],[new Date(1711584000000), 0.17016276817613799336],[new Date(1711843200000), 0.17477238493370964330],[new Date(1711929600000), 0.17137316472692730122],[new Date(1712102400000), 0.16021969968024468114],[new Date(1712188800000), 0.16107789236694816847],[new Date(1712275200000), 0.16042803201546534267],[new Date(1712448000000), 0.16398997506835505238],[new Date(1712534400000), 0.16484051082715046000],[new Date(1712620800000), 0.17301841826967280751],[new Date(1712707200000), 0.16860973205189960000],[new Date(1713916800000), 0.14971445371687573665],[new Date(1714003200000), 0.14996987467461983037], ]); var options = { hAxis: { title: '', gridlines: {color: 'none'} }, vAxis: { title: 'Market Price (USD)', textPosition: 'none', }, legend: {position: 'none'}, chartArea: {'width': '100%', 'height': '80%'}, backgroundColor: { fill:'transparent' }, }; var chart = new google.visualization.LineChart(document.getElementById('market_price')); chart.draw(data, options); }