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(1683849600000), 0.00064710054471376977],[new Date(1683936000000), 0.00065862093723263430],[new Date(1684540800000), 0.00065922241308161397],[new Date(1684627200000), 0.00065939272453825863],[new Date(1709596800000), 0.00029193793278603074],[new Date(1709683200000), 0.00030251813525190271],[new Date(1712188800000), 0.00023911927605771926],[new Date(1712275200000), 0.00023426293934246896],[new Date(1712534400000), 0.00025973118356576012],[new Date(1712620800000), 0.00026046843873677572], ]); 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); }