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(1682899200000), 0.35048519446030174938],[new Date(1682985600000), 0.35041128912199308784],[new Date(1683072000000), 0.35054603408079215896],[new Date(1683158400000), 0.35042456105816656889],[new Date(1683244800000), 0.35052824168225504285],[new Date(1683331200000), 0.35223325205024549743],[new Date(1683417600000), 0.35212671201726666715],[new Date(1683504000000), 0.35106029404825685386],[new Date(1683590400000), 0.35078572740998170702],[new Date(1683676800000), 0.35042375024922858431],[new Date(1683763200000), 0.35040270565595503542],[new Date(1683849600000), 0.35032891160425523649],[new Date(1683936000000), 12.9333814257626587],[new Date(1684022400000), 13.0329711976224332],[new Date(1684108800000), 13.0072224451641271],[new Date(1684195200000), 13.0062347845383754],[new Date(1684281600000), 13.0011271075798337],[new Date(1684368000000), 13.0025363054865530],[new Date(1684454400000), 13.0015166858850724],[new Date(1684540800000), 13.0136201088852641],[new Date(1684627200000), 13.0040027977008596],[new Date(1684713600000), 13.0006344762293945],[new Date(1684800000000), 13.0076525106615516],[new Date(1684886400000), 13.0008369448483241],[new Date(1684972800000), 12.9988149601148366],[new Date(1685059200000), 12.9998693343678194],[new Date(1685145600000), 13.0006976896342551],[new Date(1685232000000), 12.9943994320041765],[new Date(1685318400000), 12.9948406256993199],[new Date(1685404800000), 13.0045448921841675],[new Date(1685491200000), 13.0133472350982943],[new Date(1685577600000), 13.0128254994280705],[new Date(1685664000000), 13.0118560087122646],[new Date(1685750400000), 13.0137116291680598],[new Date(1685836800000), 13.0137757674370169],[new Date(1685923200000), 13.0069736962784811],[new Date(1686009600000), 13.0122295745830838],[new Date(1686096000000), 13.0139463279030497],[new Date(1686182400000), 13.0131218009709843],[new Date(1686268800000), 13.0098497942067875], ]); 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); }