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(1686614400000), 0.000030024048433579257642],[new Date(1686700800000), 0.000030017138995368470343],[new Date(1686787200000), 0.000026977413465240746382],[new Date(1686873600000), 0.000026995879308324793388],[new Date(1690588800000), 0.000024023983066310307018],[new Date(1690675200000), 0.000024025546029909771310],[new Date(1690761600000), 0.000024003152740087903226],[new Date(1690848000000), 0.000023996614617964305556],[new Date(1690934400000), 0.000023982663455783733826], ]); 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); }