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();
}
Source:stackexchange.com