Percent axis range is a tuple; the alterations chart takes the shared percent range

This commit is contained in:
2026-12-03 17:03:08 -06:00
parent 3154ba92df
commit 996a5fed88
+1 -2
View File
@@ -11,7 +11,7 @@ export const percentAxis = {
ticksuffix: ' %', ticksuffix: ' %',
tickformat: '.0f', tickformat: '.0f',
hoverformat: SHORT, hoverformat: SHORT,
range: [0, 110], range: [0, 110] as [number, number],
dtick: 20, dtick: 20,
}; };
@@ -714,7 +714,6 @@ export function teaAlterations(r: Reading): Figure {
layout: { layout: {
xaxis: { type: 'category', title: { text: 'Alteración del EEG' } }, xaxis: { type: 'category', title: { text: 'Alteración del EEG' } },
yaxis: { yaxis: {
range: [0, 100],
...percentAxis, ...percentAxis,
title: { text: '% de niños con EEG de buena calidad' }, title: { text: '% de niños con EEG de buena calidad' },
}, },