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.00404865295548773417],[new Date(1683417600000), 0.00408788971453055542],[new Date(1683504000000), 0.00398222461960411414],[new Date(1683590400000), 0.00424336779072737968],[new Date(1683676800000), 0.00472298268848705771],[new Date(1683763200000), 0.00459274357853025004],[new Date(1683849600000), 0.00371762690365149083],[new Date(1683936000000), 0.00371324064294304271],[new Date(1684022400000), 0.00371000568256504000],[new Date(1684108800000), 0.00370215611026075875],[new Date(1684195200000), 0.00328706006051714012],[new Date(1684281600000), 0.00332882770111353146],[new Date(1684368000000), 0.00331791720077702861],[new Date(1684454400000), 0.00322410389452875006],[new Date(1684540800000), 0.00315961864450596235],[new Date(1684627200000), 0.00315656169943514433],[new Date(1684713600000), 0.00315640842475338788], ]); 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); }