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(1685318400000), 21.5525839942720953],[new Date(1685404800000), 21.4675402155189078],[new Date(1685491200000), 22.3077078425242789],[new Date(1685577600000), 22.1849440101416817],[new Date(1686873600000), 26.7566189099872531],[new Date(1686960000000), 27.3032392659852039],[new Date(1688774400000), 24.6415909699965074],[new Date(1688860800000), 24.7548218930419432],[new Date(1690416000000), 26.0138894818594788],[new Date(1690502400000), 25.8693497770382113],[new Date(1694390400000), 0.92394220765867470227],[new Date(1694476800000), 0.94603651570169512817],[new Date(1694822400000), 21.7765725730019259],[new Date(1694908800000), 21.6884554381723336],[new Date(1695340800000), 7.4559431855139251],[new Date(1695427200000), 8.0071827071697435],[new Date(1695600000000), 5.8351237160287609],[new Date(1695686400000), 5.8412860596889931],[new Date(1695772800000), 7.3186588742709787],[new Date(1695859200000), 7.3405750739836710],[new Date(1696377600000), 7.7511264112792127],[new Date(1696464000000), 7.7549196224183575],[new Date(1696550400000), 8.3745066125295813],[new Date(1696636800000), 10.8845560582434413],[new Date(1696723200000), 10.8553329306661868],[new Date(1709164800000), 0.02947780399726381766],[new Date(1709251200000), 0.02923215333104108802],[new Date(1709683200000), 0.03270913251298806979],[new Date(1709769600000), 0.03321267206784276500],[new Date(1710115200000), 0.03472034436319164981],[new Date(1710201600000), 0.03534801637234735071],[new Date(1710633600000), 0.03137354910757388973],[new Date(1710720000000), 0.03129354809544152000],[new Date(1711152000000), 0.02866122597928773507],[new Date(1711238400000), 0.02837539628921614865],[new Date(1712361600000), 0.02819108213995514437],[new Date(1712448000000), 0.02850815224128349264],[new Date(1712793600000), 0.02970678739409468098],[new Date(1712880000000), 37.9925253887396395],[new Date(1712966400000), 33.8627911918234913],[new Date(1713052800000), 27.9277991089772890],[new Date(1714089600000), 0.02609388564527512500],[new Date(1714176000000), 0.02630686020622439916], ]); 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); }