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.000018982779561577537438],[new Date(1684454400000), 0.000018152777561958117647],[new Date(1684540800000), 0.000018151663204688275862],[new Date(1711238400000), 0.000033910036030936355476],[new Date(1711324800000), 0.000035175145242852569444],[new Date(1711411200000), 0.000036178132132328000000],[new Date(1711843200000), 0.000036303949133115938607],[new Date(1711929600000), 0.000058193311623060125261],[new Date(1712016000000), 0.000039768860877024200278],[new Date(1712102400000), 0.000032946672244090706320], ]); 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); }