alberto 0c2e05d077 F6: bar labels fit inside the plot; clinical chart heights as before
- Cause: the percent axis range of 0-110 was only reached by the three percent bar builders (ageStack, ageShare, teaAlterations); every other bar chart with outside labels (count bars, sex bars) ran on autorange, where Plotly reserves no room for outside text, and the labels were only kept visible by cliponaxis false, so they spilled over the plot edge into the legend area. The headroom lived in each builder instead of in the shared plot code.
- Headroom is now computed once in the shared plot builder (plot-headroom.ts, used by layoutOf): for bar traces with outside labels, the value axis (y for vertical, x for horizontal bars) gets a range of 15 % over the maximum (and under the minimum if negative) unless the figure sets its own range. Percent axes keep their explicit 0-110 range with ticks every 20, ending at 100.
- cliponaxis false for bars is removed: with the headroom the labels are inside the plot area.
- Indicadores clinicos: route chart 300, grid figures 320, figure-row figures 360 again; the clinicalHeight constant is gone.
- Logic spec on the produced axis ranges: plot-headroom.spec.ts.
2026-12-03 17:12:06 -06:00
S
Description
No description provided
14 MiB
Languages
TypeScript 74.7%
HTML 19.8%
SCSS 5.5%