Chartjs-Chart section is empty

2👍

Call chart.update() after initializing the chart object. See the documentation for modifying chart data here: chartjs.org/docs/latest/developers/updates.html

0👍

In the component you are using the chart, add this to the component’s CSS:

:host {
  display: block;
}

result: https://stackblitz.com/edit/angular-mqsupm

Leave a comment