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(1683417600000), 0.01140551301778725375],[new Date(1683504000000), 0.01055930627406393892],[new Date(1683590400000), 0.01099653205404445907],[new Date(1683676800000), 0.01003824921509737674],[new Date(1683763200000), 0.00935505051647544708],[new Date(1683849600000), 0.00924094963508782278],[new Date(1683936000000), 0.00949438616059145049],[new Date(1684022400000), 0.00953540668909718757],[new Date(1684108800000), 0.00968587948883956528],[new Date(1684195200000), 0.00984834495513825104],[new Date(1684281600000), 0.01035697327552006118],[new Date(1684368000000), 0.01053938158260544326],[new Date(1684454400000), 0.01030002714826598507],[new Date(1684540800000), 0.01011079194204489674],[new Date(1684627200000), 0.00995819008462757243],[new Date(1684713600000), 0.00919269145997096958],[new Date(1684800000000), 0.00910360066859775000], ]); 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); }