fix(cama): mostrar solo el conteo al pasar sobre la dona
This commit is contained in:
@@ -98,6 +98,7 @@ describe('Conteos pareados de CaMa: etiquetas de la dona', () => {
|
||||
it('mantiene las etiquetas con porcentaje fuera del sector', () => {
|
||||
const f = dona(), t = f.data[0];
|
||||
expect(t['textinfo']).toBe('none');
|
||||
expect(t['hovertemplate']).toBe('%{value}<extra></extra>');
|
||||
expect(f.layout.annotations.slice(2).map(a => a['text']).sort()).toEqual([
|
||||
'BI-RADS 4<br>(sin<br>subcategoría)<br>45.5 %', 'BI-RADS 5<br>54.5 %',
|
||||
]);
|
||||
|
||||
@@ -146,7 +146,7 @@ export function donaConteos(m: ModeloConteos, par: ParConteos, tema: Tema): Plot
|
||||
marker: { colors: m.examenes.map(c => c.color), line: { color: p.background, width: 2 } }, textinfo: 'none',
|
||||
domain: { x: [0, 1], y: [.3, .7] },
|
||||
customdata: n.map((v, i) => [miles(v), porcentajes[i]]),
|
||||
hovertemplate: `%{label}<br>%{customdata[0]} ${par.unidades.examenes}, %{customdata[1]} %<extra></extra>` }],
|
||||
hovertemplate: '%{value}<extra></extra>' }],
|
||||
layout: { autosize: true, height: ALTO_DONA, showlegend: false, paper_bgcolor: p.background, font: { color: p.text },
|
||||
margin: { t: MARGEN_DONA, b: MARGEN_DONA, l: MARGEN_DONA, r: MARGEN_DONA },
|
||||
shapes: llamadas.map(({ shape }) => shape),
|
||||
|
||||
Reference in New Issue
Block a user