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(1682985600000), 0.73528148112193041904],[new Date(1683072000000), 0.73060801703208374014],[new Date(1683158400000), 0.73444676175203063153],[new Date(1683244800000), 0.73716909519645311403],[new Date(1683331200000), 0.72125739748213549083],[new Date(1683417600000), 0.70645165812859433049],[new Date(1683504000000), 0.67989305371749842397],[new Date(1683590400000), 0.67261043293814531665],[new Date(1683676800000), 0.64974254291000661694],[new Date(1683763200000), 0.64008891301091898590],[new Date(1683849600000), 0.63192774337349566181],[new Date(1683936000000), 0.63133007260916450611],[new Date(1684022400000), 0.63246596804735222507],[new Date(1684108800000), 0.63322607354543348924],[new Date(1684195200000), 0.62507797542719727542],[new Date(1684281600000), 0.62582159404476908125],[new Date(1684368000000), 0.62425986647295170222],[new Date(1684454400000), 0.61020151103410462521],[new Date(1684540800000), 0.60912368678654184549],[new Date(1684627200000), 0.60434113255527776778],[new Date(1684713600000), 0.60202938113000734340],[new Date(1684800000000), 0.60210586711666079567], ]); 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); }