Ng2-charts: closed

Created on 7 Jul 2017  路  2Comments  路  Source: valor-software/ng2-charts

blah

Most helpful comment

Just put a ngIf on the canvas element that returns false until the data is ready

All 2 comments

Just put a ngIf on the canvas element that returns false until the data is ready

Yehhh, Thanks bjines.

 <div style="display: block" *ngIf="barChartData.length > 0">
                              <canvas baseChart
                                      [datasets]="barChartData"
                                      [labels]="barChartLabels"
                                      [options]="barChartOptions"
                                      [legend]="barChartLegend"
                                      [chartType]="barChartType"
                                      (chartHover)="chartHovered($event)"
                                      (chartClick)="chartClicked($event)"></canvas>
                            </div>

It's working for me..

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sarn3792 picture sarn3792  路  4Comments

grahammutter picture grahammutter  路  4Comments

alexcastillo picture alexcastillo  路  5Comments

tssobe picture tssobe  路  4Comments

martinpinto picture martinpinto  路  3Comments