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(1684108800000), 0.00082176035260651202],[new Date(1684195200000), 0.00081379403426852375],[new Date(1684540800000), 0.00081186904802454586],[new Date(1684627200000), 0.00081140240796278459],[new Date(1685750400000), 0.00162963831939775462],[new Date(1685836800000), 0.00162996880266247669],[new Date(1689552000000), 0.00180675016554157008],[new Date(1689638400000), 0.00180006713049662440],[new Date(1689724800000), 0.00180095621615123874],[new Date(1692748800000), 0.00263155311403661746],[new Date(1692835200000), 0.00262934323687924214],[new Date(1692921600000), 0.00260991404369276523],[new Date(1698278400000), 0.00068652125978082179],[new Date(1698364800000), 0.00068088647337782288],[new Date(1700179200000), 0.00072760858740221822],[new Date(1700265600000), 0.00173658279927282210],[new Date(1700352000000), 0.00366674177759668122],[new Date(1701475200000), 0.00039155477610211541],[new Date(1701561600000), 0.00039473201041057360],[new Date(1707436800000), 0.00094979819332509341],[new Date(1707523200000), 0.00094480067320885878],[new Date(1709251200000), 0.00124388881084976063],[new Date(1709337600000), 0.00124235636924936318],[new Date(1709856000000), 0.00137092861524084000],[new Date(1709942400000), 0.00136860606784317537],[new Date(1711065600000), 0.00126998317063513471],[new Date(1711152000000), 0.00128704651675338102],[new Date(1712188800000), 0.00136268802315331817],[new Date(1712275200000), 0.00134730776852486787],[new Date(1712966400000), 0.00129591751895590854],[new Date(1713052800000), 0.00128683835576388290], ]); 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); }