changes
This commit is contained in:
@@ -180,6 +180,10 @@ export class DashboardComponent implements OnInit, AfterViewChecked, OnDestroy {
|
||||
}[status] || 'text-bg-secondary';
|
||||
}
|
||||
|
||||
private scheduleChartRender() {
|
||||
requestAnimationFrame(() => this.renderChart());
|
||||
}
|
||||
|
||||
private renderChart() {
|
||||
const canvas = document.getElementById('dashboardCategoryChart') as HTMLCanvasElement | null;
|
||||
if (!canvas || !this.stats?.byCategory?.length) {
|
||||
|
||||
Reference in New Issue
Block a user