Chartjs-Updating Chart Data on Charts.js with Ng2-Charts

0👍

You can just place a ngIf on your canvas to check if there is any data like so:

<canvas id="hotGauge"
  *ngIf="hotGaugeData"
  baseChart
  [labels]="GaugeLabels"
  [chartType]="GaugeType"
  [options]="hotGaugeOptions"
  [colors]="hotGaugeColors"
  [legend]="GaugeLegend"
  [data]="hotGaugeData">

Example: https://codesandbox.io/s/gallant-wiles-c8w4p?file=/src/app/app.component.ts

Leave a comment