Percent axis range is a tuple; the alterations chart takes the shared percent range
This commit is contained in:
@@ -11,7 +11,7 @@ export const percentAxis = {
|
||||
ticksuffix: ' %',
|
||||
tickformat: '.0f',
|
||||
hoverformat: SHORT,
|
||||
range: [0, 110],
|
||||
range: [0, 110] as [number, number],
|
||||
dtick: 20,
|
||||
};
|
||||
|
||||
@@ -714,7 +714,6 @@ export function teaAlterations(r: Reading): Figure {
|
||||
layout: {
|
||||
xaxis: { type: 'category', title: { text: 'Alteración del EEG' } },
|
||||
yaxis: {
|
||||
range: [0, 100],
|
||||
...percentAxis,
|
||||
title: { text: '% de niños con EEG de buena calidad' },
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user