Chartjs + firebase


#1

Hey Ionites.
How can I load a data from firebase to my chart.js?

here is my code:

ionViewDidLoad(){
            
         
this.polarChart = new Chart(this.polarCanvas.nativeElement, {
 
            type: 'polarArea',
            data: {
                labels: ["Jogos", "Vitórias", "Empates", "Derrotas", "Gols Marcados", "Gols Sofridos"],
                datasets: [{
                    label: '# of Votes',
                    data: [20, 19, 3, 5, 2, 3],

I would like to retrieve the data from firebase. Any expert can help me?

Thank you