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(1683590400000), 0.000031669177914111992945],[new Date(1683676800000), 0.000031635543982254870130],[new Date(1684886400000), 0.000028929188239013138686],[new Date(1684972800000), 0.000028797586339671646341],[new Date(1686873600000), 0.000027991579299860215054],[new Date(1686960000000), 0.000028007131532834528689],[new Date(1688688000000), 0.000004804742017464285714],[new Date(1688774400000), 0.000004805379690226789668],[new Date(1690243200000), 0.000014409418693372759227],[new Date(1690329600000), 0.000014407421968233750000],[new Date(1690416000000), 0.000014408123710454054054], ]); 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); }