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(1683331200000), 0.03093746007114603090],[new Date(1683417600000), 0.03069944276397590921],[new Date(1683504000000), 0.02994419692451449017],[new Date(1683590400000), 0.02986867547026616078],[new Date(1683676800000), 0.02914666165672680715],[new Date(1683763200000), 0.02903494146441515861],[new Date(1683849600000), 0.02869839657377751000],[new Date(1683936000000), 0.02797994575032345681],[new Date(1684022400000), 0.02814536595064779569],[new Date(1684108800000), 0.02837226134709744507],[new Date(1684195200000), 0.02827210117001911569],[new Date(1684281600000), 0.02825944989837564201],[new Date(1684368000000), 0.02815800929064829826],[new Date(1684454400000), 0.02780026306154787347],[new Date(1684540800000), 0.02745673633434654076],[new Date(1684627200000), 0.02750550685164831285],[new Date(1684713600000), 0.02742933864723229514],[new Date(1684800000000), 0.02743282346059098267], ]); 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); }