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(1683504000000), 0.00081847058840807005],[new Date(1683590400000), 0.00082382342304782569],[new Date(1683676800000), 0.00082611898515898097],[new Date(1683763200000), 0.00082606937283097694],[new Date(1683849600000), 0.00082602572057683583],[new Date(1683936000000), 0.00095792400481749228],[new Date(1684022400000), 0.00092414113389943319],[new Date(1684108800000), 0.00092029366057143264],[new Date(1684195200000), 0.00094137325735741889],[new Date(1684281600000), 0.00093302397216067243],[new Date(1684368000000), 0.00087037958387758313],[new Date(1684454400000), 0.00087385444775683840],[new Date(1684540800000), 0.00087982082413071208],[new Date(1684627200000), 0.00087917061991532986],[new Date(1684713600000), 0.00087894289547369493],[new Date(1684800000000), 0.00087905456247314267], ]); 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); }