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:

https://learnionic2.com/2017/02/13/ionic-2-and-chart-js-ng2-charts-an-example-bar-chart-project/

You can then follow the http://www.chartjs.org/ and https://github.com/valor-software/ng2-charts 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