Extracting and formatting data from Firebase for visualization purposes can be challenging after successfully working with it in HTML. I am currently dealing with a FirebaseListObservable that contains three value-types, but only one of them needs to be included in the array for visualization. How can I effectively convert a FirebaseListObservable to an array using TypeScript?
I need to convert the data in order to create graphs within my app.
Here is the TypeScript code for retrieving the data:
this.measure = this.db.list('/Users/' + this.username + '/Measure');
enter code here
And here is the TypeScript code for implementing chartjs:
this.data = [12, 24, 91, 23]
The goal is to populate 'this.data' array with the actual data retrieved from Firebase.