Chartjs-How to get values inside a chart without clicking

0πŸ‘

βœ…

I don’t see anything wrong with your code. It should work as is.

Perhaps try force updating the chart after creating it, using the update() method, as such :

ionViewDidLoad() {

   this.barChart = new Chart(this.barCanvas.nativeElement, {
     ...
     ...
   });

   this.barChart.update();
}

Leave a comment