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
@@ -77,7 +77,7 @@ describe('Histórico: C2 (conteos por categoría)', () => {
it('apila las categorías en el orden que publica el indicador, con sus colores y etiquetas', () => {
const f = fig(d(completo));
expect(f.data.map(t => t['name'])).toEqual(['BI-RADS 5', 'BI-RADS 4 (sin subcategoría)', 'Sin dato']);
expect((f.data[0]['marker'] as { color: string }).color).toBe(C2_PALETTE.series[0]);
expect((f.data[0]['marker'] as { color: string }).color).toBe(C2_PALETTE.calidos[0]);
expect(f.data[0]['y']).toEqual([4, 4, 4, 4]);
expect(f.layout['barmode']).toBe('stack');
expect((f.layout['yaxis'] as { title: { text: string } }).title.text).toBe('Pacientes');