fixed code artifact

This commit is contained in:
Kazgatari
2026-07-15 23:41:57 +02:00
parent 3d0377adff
commit 63865efe84
2 changed files with 2 additions and 7 deletions
@@ -5,9 +5,7 @@
<span class="pie-loader-text">Lade Daten...</span>
</div>
}
@if (state.echartsLoaded()) {
@for (key of [entityId() || titleText() || 'overall']; track key) {
<div echarts [options]="chartOptions()" class="pie-chart-container"></div>
}
@for (key of [entityId() || titleText() || 'overall']; track key) {
<div echarts [options]="chartOptions()" class="pie-chart-container"></div>
}
</div>
@@ -3,14 +3,12 @@ import {
input,
computed,
ChangeDetectionStrategy,
inject,
} from '@angular/core';
import { CommonModule } from '@angular/common';
import { EChartsOption } from 'echarts';
import { NgxEchartsDirective } from 'ngx-echarts';
import { TrendResponse } from '../../../api';
import { topicHierarchyColor } from '../../../resolvers/utils/topic-colors';
import { SharedStateService } from '../../../shared/services/shared-state.service';
import { MatProgressSpinner } from '@angular/material/progress-spinner';
@@ -22,7 +20,6 @@ import { MatProgressSpinner } from '@angular/material/progress-spinner';
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class UniPieChartComponent {
protected readonly state = inject(SharedStateService);
readonly data = input<TrendResponse | null>(null);
readonly entityId = input<string | null>(null);
readonly entityName = input<string | null>(null);