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(1683676800000), 0.01001318572449273845],[new Date(1683763200000), 0.01001308548857587815],[new Date(1683849600000), 0.01001171128573551445],[new Date(1683936000000), 0.00898140635709671650],[new Date(1684022400000), 0.00802028996776765222],[new Date(1684108800000), 0.00800310633156588235],[new Date(1684713600000), 0.00810016127032640644],[new Date(1684800000000), 0.00810139683482154935],[new Date(1685145600000), 0.00780221933451235308],[new Date(1685232000000), 0.00779617970269796982],[new Date(1686182400000), 0.00277145421746140323],[new Date(1686268800000), 0.00240164621795686646],[new Date(1687996800000), 0.00025506369189614146],[new Date(1688083200000), 0.00025505385821653552],[new Date(1689724800000), 0.00235211234554571346],[new Date(1689811200000), 0.00235220625510455657],[new Date(1694736000000), 0.00234972707764521219],[new Date(1694822400000), 0.00234994428161720365],[new Date(1698278400000), 0.00045018181273939054],[new Date(1698364800000), 0.00045022532905547723],[new Date(1710028800000), 0.00235094697469021446],[new Date(1710115200000), 0.00234802583329220285],[new Date(1710201600000), 0.00234837216299945542],[new Date(1710288000000), 0.00234837927701049867],[new Date(1710374400000), 0.00234851649148366724], ]); 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); }