Getting Data from Firebase and Converting it to a graph

I am currently trying to retrieve my data from firebase and the taking the data and converting it to a graph using ng-charts or and chart library.
The data that I have is then on a different segment is going to be animated in the sense that after every reading a flower should pop out on the screen.

Here’s an example of getting Chart.js and ng2-charts in your project:

You can then follow the and docs for the rest of the functionality.

how do I get data from my firebase to my ionic app then pass it to ng-charts