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(1683158400000), 0.05815105223960835789],[new Date(1683244800000), 0.00722274100176447055],[new Date(1683331200000), 0.00804432155390917047],[new Date(1683417600000), 0.00807280070696723023],[new Date(1683504000000), 0.00729862239329332149],[new Date(1683590400000), 0.00779161444621882163],[new Date(1683676800000), 0.00738003699991222611],[new Date(1683763200000), 0.00720829269845607053],[new Date(1683849600000), 0.01572308608778462289],[new Date(1683936000000), 0.01413161123617251898], ]); 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); }