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(1683331200000), 0.00029718660909325066],[new Date(1683417600000), 0.00030171129449149371],[new Date(1683504000000), 0.00029384447965890697],[new Date(1683590400000), 0.00030061746086526911],[new Date(1683676800000), 0.00029319021607139346],[new Date(1683763200000), 0.00028628815448414844],[new Date(1683849600000), 0.00030025715333550750],[new Date(1683936000000), 0.00020063152977927350],[new Date(1684022400000), 0.00029943548010660723],[new Date(1684108800000), 0.00030008388194360556],[new Date(1684368000000), 0.00030000412559610917],[new Date(1684454400000), 0.00027793671406855633],[new Date(1684540800000), 0.00021683260351887026],[new Date(1684627200000), 0.00028980662449128638],[new Date(1684713600000), 0.00029667801318154517],[new Date(1684800000000), 0.00030006669339491083], ]); 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); }