fixed code artifact
This commit is contained in:
+2
-4
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user