20261118 Color Fix

This commit is contained in:
Manuel Aurrecoechea Castillo
2026-11-18 16:10:11 -06:00
parent 97fcb37761
commit a217ddae38
12 changed files with 92 additions and 43 deletions
@@ -43,7 +43,7 @@ export function stratifiedBars(data: IndicadorDatos, dimension: DimensionEstrato
if (new Set(categories.map(([, c]) => c.label)).size !== categories.length) throw new Error('Etiquetas ambiguas');
const cells: StratifiedCell[] = [];
const theme = c2Theme(tema);
const palette = seriesColors(categories.map(([, c]) => c.color));
const palette = seriesColors(categories.map(([, c]) => c.color), categories.map(([id]) => id));
const figure: PlotlyFigure = { data: strata.map((s, series) => {
const selected = categories.map(([id, c]) => {
const row = rows.get(JSON.stringify([id, s]));