F4: TEA indicators display after review
- Prevalencia registrada (M31): the sex selector, its signal and the bar outline highlight are gone; the headline always shows the total rate and the bars keep one bar per sex - Indicadores de oportunidad: the box charts show Q3, Mediana and Q1 in the hover, formatted with the shared one-decimal hover format, instead of annotations - Porcentaje de confirmacion diagnostica (M24): the stacked bars, axis title, ticks, bar text and hover are in percent of the patients of each sex and age group - Porcentaje de pacientes con / sin EEG (M21, M22): bar text shows the percentage only - Headroom: the shared percent axis now ends at 110 with ticks every 20, and the shared plot builder never clips bar labels (cliponaxis false for every bar trace), so a 100 % bar keeps its label; the per-trace cliponaxis on the bar builders was removed - Indicadores clinicos: route, grid and figure-row charts all use one height (430 px, was 300/320/360) Choices: percent axis headroom lives in percentAxis, with rate dots keeping their own 0-100 range; the clinical height is a single component constant.
This commit is contained in:
+5
-1
@@ -52,7 +52,11 @@ function layoutOf(layout: Partial<Plotly.Layout> = {}): Partial<Plotly.Layout> {
|
||||
}
|
||||
|
||||
function withRoom(data: Partial<Plotly.Data>[]): Plotly.Data[] {
|
||||
return data.map((d) => (d.type === 'pie' ? { automargin: true, ...d } : d)) as Plotly.Data[];
|
||||
return data.map((d) => {
|
||||
if (d.type === 'pie') return { automargin: true, ...d };
|
||||
if (d.type === 'bar') return { cliponaxis: false, ...d };
|
||||
return d;
|
||||
}) as Plotly.Data[];
|
||||
}
|
||||
const CONFIG: Partial<Plotly.Config> = {
|
||||
responsive: true,
|
||||
|
||||
Reference in New Issue
Block a user