Cosmetic pass: legends above plots, readable hovers and ticks, KPI qualifiers, a header that never wraps
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user