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(1684195200000), 0.00041617343032739451],[new Date(1684281600000), 0.00041465485382505128],[new Date(1695340800000), 0.00026611983891872309],[new Date(1695427200000), 0.00026599500174191213],[new Date(1699401600000), 0.000025723743481353080569],[new Date(1699488000000), 0.000025638899228320114007],[new Date(1706054400000), 0.000027917518314266279070],[new Date(1706140800000), 0.000028000378510294950495],[new Date(1712880000000), 0.000047403241040713988658],[new Date(1712966400000), 0.000047164124838797036224], ]); 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); }