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(1684368000000), 0.00696704962804443929],[new Date(1684454400000), 0.00652055579895860843],[new Date(1684540800000), 0.00645619502986151833],[new Date(1684627200000), 0.00567279963447251324],[new Date(1685232000000), 0.00601310168022746619],[new Date(1685318400000), 0.00436540498888593069],[new Date(1685404800000), 0.00416287604332360991],[new Date(1685491200000), 0.00487390441478298014],[new Date(1685577600000), 0.00659462412356316393],[new Date(1685664000000), 0.00812720306626961049],[new Date(1685750400000), 0.00815754937040202450],[new Date(1688515200000), 0.01430346262760613475],[new Date(1688601600000), 0.01444478099606911003],[new Date(1689033600000), 0.00734062539435999650],[new Date(1689120000000), 0.00736506228908432900],[new Date(1697760000000), 0.00444908773972041655],[new Date(1697846400000), 0.00444676078218469105],[new Date(1698019200000), 0.00479815359782878035],[new Date(1698105600000), 0.00512188468955630086],[new Date(1699488000000), 0.00550069659476183696],[new Date(1699574400000), 0.00550272583781071832],[new Date(1700524800000), 0.00555674736931108919],[new Date(1700611200000), 0.00546348613478115835],[new Date(1701993600000), 0.00665938845874254294],[new Date(1702080000000), 0.00661124410250178077],[new Date(1707696000000), 0.00749269109202163758],[new Date(1707782400000), 0.00744464422405329663],[new Date(1709078400000), 0.00914969462911471834],[new Date(1709164800000), 0.00933330732995185154],[new Date(1710028800000), 0.00724921000869928382],[new Date(1710115200000), 0.00701795248062238064],[new Date(1710201600000), 0.00677461972614248741],[new Date(1710288000000), 0.00695161040568652528],[new Date(1710374400000), 0.00722175063857489951],[new Date(1710460800000), 0.00717934232967982157],[new Date(1710720000000), 0.00474345094368702573],[new Date(1710806400000), 0.00345602698635015212],[new Date(1710892800000), 0.00251373431383427081],[new Date(1710979200000), 0.00265730548580765315],[new Date(1711065600000), 0.00263879755651401987],[new Date(1713916800000), 0.00130764556451277907],[new Date(1714003200000), 0.00128665355539602608], ]); 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); }