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(1684627200000), 0.00134828461305758936],[new Date(1684713600000), 0.00133343182890340789],[new Date(1688688000000), 0.00882271685145724400],[new Date(1688774400000), 0.00937903672895805254],[new Date(1698278400000), 0.00137283567926170621],[new Date(1698364800000), 0.00136103970902261103],[new Date(1701734400000), 0.00111669422250232579],[new Date(1701820800000), 0.00111411903628105268],[new Date(1712275200000), 0.00339097159416739290],[new Date(1712361600000), 0.00340168509251693121], ]); 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); }