简体   繁体   中英

Android studio(java) Firebase realtime creating graphs

I am just wondering how do I create graphs such as pie charts and bar charts, based on my data from firebase real-time. For example, each user is associated with a company I would like to create a bar chart or pie chart based on the total amount of each company for example pie chart example

Here is what my database looks like Database Database

Thank you

In order to retrieve data from firebase database you should check the google docs about it at this site

It clearly says that firebase use asynchronous listeners, so they will automatically get the data when day are modified.

To create charts in android studio I recommend you to use this external implementation from github, by PhilJay . It provides you also all the documentation about the implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM