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(1689292800000), 0.02033483299835771690],[new Date(1689379200000), 0.01992917711313603775],[new Date(1689638400000), 0.01951407353432876521],[new Date(1689724800000), 0.01955863314665326364],[new Date(1691107200000), 0.04641365465024236424],[new Date(1691193600000), 0.28127572388480933190],[new Date(1691280000000), 0.26676261645774217379],[new Date(1691971200000), 0.34559035007242547730],[new Date(1692057600000), 0.34484758477700819019],[new Date(1693526400000), 0.13359839478144316347],[new Date(1693612800000), 0.08181823287354090744],[new Date(1693699200000), 0.07677289503321171053],[new Date(1695081600000), 0.06772647514995955882],[new Date(1695168000000), 0.09590405662412507728],[new Date(1695254400000), 0.10945668666994973270],[new Date(1695513600000), 0.06008982906427726323],[new Date(1695600000000), 0.05941812760770665321],[new Date(1695945600000), 0.10374700992043988182],[new Date(1696032000000), 0.10424069190917167595],[new Date(1697155200000), 0.08433998893905705532],[new Date(1697241600000), 0.08471121639027491511],[new Date(1699056000000), 0.02073796379351694915],[new Date(1699142400000), 0.02109512030813628103],[new Date(1704499200000), 0.01839467545753312475],[new Date(1704585600000), 0.01841756041962635978],[new Date(1710547200000), 0.00728526419260469070],[new Date(1710633600000), 0.00729624574662476996],[new Date(1714089600000), 0.00243829979632629724],[new Date(1714176000000), 0.00242477493792071186],[new Date(1714694400000), 0.00951263611399587500],[new Date(1714780800000), 0.00344642639118271473],[new Date(1714867200000), 0.00343977599324010000], ]); 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); }