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(1688256000000), 0.00306306737355888084],[new Date(1688342400000), 0.00307976929808091446],[new Date(1693180800000), 0.00260416071785021852],[new Date(1693267200000), 0.00265524449350096254],[new Date(1697155200000), 0.00269122691307759573],[new Date(1697241600000), 0.00269089706155142586],[new Date(1698019200000), 0.00316939378099594175],[new Date(1698105600000), 0.00341910418707443100],[new Date(1701648000000), 0.00417380803098453145],[new Date(1701734400000), 0.00417273467280770688],[new Date(1707523200000), 0.00429515335069337143],[new Date(1707609600000), 0.00433024857198001431],[new Date(1707696000000), 0.00434303920284276250],[new Date(1707868800000), 0.00461350350087614762],[new Date(1707955200000), 0.00469557448898948371],[new Date(1710028800000), 0.00556099795048529048],[new Date(1710115200000), 0.00548414336898965062],[new Date(1710720000000), 0.00542484269186725211],[new Date(1710806400000), 0.00536878147023477917],[new Date(1712966400000), 0.00510372823097575260],[new Date(1713052800000), 0.00514724438792028924],[new Date(1714003200000), 0.00516477598040619675],[new Date(1714089600000), 0.00514676895887046663], ]); 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); }