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(1684022400000), 0.00117982637978506515],[new Date(1684108800000), 0.00117734262617570432],[new Date(1684195200000), 0.00117813958151693498],[new Date(1684281600000), 0.00117944526925051633],[new Date(1684368000000), 0.00118709618562758826],[new Date(1684454400000), 0.00118690633444664232],[new Date(1684713600000), 0.00118695541815305420],[new Date(1684800000000), 0.00118578770895418917],[new Date(1684886400000), 0.00117710911384468847],[new Date(1684972800000), 0.00117698918163322320],[new Date(1687824000000), 0.00115533150927661416],[new Date(1687910400000), 0.00117858350750577021],[new Date(1688083200000), 0.00119584007015884246],[new Date(1688169600000), 0.00119803919666975153],[new Date(1688256000000), 0.00120159455243111243],[new Date(1688342400000), 0.00120012570259194507],[new Date(1688428800000), 0.00120119016739554861],[new Date(1688515200000), 0.00119705027825985549],[new Date(1688601600000), 0.00119847386679346674],[new Date(1688688000000), 0.00171179406366425375],[new Date(1688774400000), 0.00120139009925709528],[new Date(1688860800000), 0.00118785603007944194],[new Date(1688947200000), 0.00117501312639857693],[new Date(1689033600000), 0.00118523203081799628],[new Date(1689120000000), 0.00110062647664711139],[new Date(1689465600000), 0.00110213772925861193],[new Date(1689552000000), 0.00110141769296559970],[new Date(1689984000000), 0.00183901318747520222],[new Date(1690070400000), 0.00188280740222015186],[new Date(1690675200000), 0.00091475581126651567],[new Date(1690761600000), 0.00078226312508232621],[new Date(1691020800000), 0.00348122306120038437],[new Date(1691107200000), 0.00342592985601207950],[new Date(1691193600000), 0.00328052820455655822],[new Date(1691452800000), 0.00099960090280175048],[new Date(1691539200000), 0.00099969963264675613],[new Date(1691625600000), 0.00185755586528538919],[new Date(1691712000000), 0.00060356883994069912],[new Date(1691798400000), 0.00265839961970846895],[new Date(1691884800000), 0.00265829306674400312],[new Date(1692316800000), 0.00207243209585639388],[new Date(1692403200000), 0.00206343947489801703],[new Date(1692489600000), 0.00100166338605244455], ]); 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); }