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(1685145600000), 0.00094133330713750835],[new Date(1685232000000), 0.00095180986868847332],[new Date(1692403200000), 0.01898218502747482317],[new Date(1692489600000), 0.01709693842215369747],[new Date(1694563200000), 0.00137246808690035217],[new Date(1694649600000), 0.00138664394040582206],[new Date(1695513600000), 0.00023694560357055875],[new Date(1695600000000), 0.00023447083025327372],[new Date(1696377600000), 0.00245325182929555873],[new Date(1696464000000), 0.00244889825134933803],[new Date(1697500800000), 0.00210760645312952345],[new Date(1697587200000), 0.00211923218449417379],[new Date(1711929600000), 0.00077133391207699668],[new Date(1712016000000), 0.00075553569474079343], ]); 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); }