Cosmetic pass: legends above plots, readable hovers and ticks, KPI qualifiers, a header that never wraps

This commit is contained in:
Roberto Treviño
2026-11-29 12:39:07 -06:00
parent 979b7cf34d
commit a93cd71126
8 changed files with 116 additions and 13 deletions
+6
View File
@@ -202,6 +202,12 @@ export class TabIndicadores {
return this.byName().get(code);
}
/** A card's value and note, from its templates (a card with no measure: its words). */
/** "27 días (mediana)" as the value and its qualifier, shown smaller beneath it. */
protected kpiParts(text: string): [string, string] {
const found = /^(.*?)\s*(\([^)]*\))$/.exec(text);
return found ? [found[1], found[2]] : [text, ''];
}
protected kpiValue(k: Kpi): string {
if (!k.measure) return k.value ?? '';
const r = this.rd(k.measure);