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: ' %',
|
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' },
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user