diff --git a/core/frontend/bigscreen/src/app/app.component.html b/core/frontend/bigscreen/src/app/app.component.html index a74aa53..c00aa18 100644 --- a/core/frontend/bigscreen/src/app/app.component.html +++ b/core/frontend/bigscreen/src/app/app.component.html @@ -7,7 +7,7 @@
{{ selectedTitle }}
- +
diff --git a/core/frontend/src/app/chart-panel.component.ts b/core/frontend/src/app/chart-panel.component.ts index a9109e2..cf1b789 100644 --- a/core/frontend/src/app/chart-panel.component.ts +++ b/core/frontend/src/app/chart-panel.component.ts @@ -10,6 +10,7 @@ export class ChartPanelComponent implements OnChanges { @Input() history: WeatherPoint[] = []; @Input() forecast: ForecastPoint[] = []; @Input() legendMode: string = 'combo_standard'; + @Input() showAccuracy: boolean = true; @ViewChild('canvas', { static: true }) canvas!: ElementRef; @ViewChild('accPanel', { static: true }) accPanel!: ElementRef; @@ -155,6 +156,7 @@ export class ChartPanelComponent implements OnChanges { private updateAccuracyPanel(labels: string[], historyRain: (number|null)[], h1: (number|null)[], h2: (number|null)[], h3: (number|null)[]) { const panel = this.accPanel?.nativeElement; if (!panel) return; + if (!this.showAccuracy) { panel.style.display = 'none'; return; } const isNum = (v:any)=> v!=null && !isNaN(Number(v)); const usedIdx = historyRain.map((v, idx) => ({v, idx})).filter(x => isNum(x.v)).map(x => x.idx); const total = usedIdx.length;