Gobernanza: Analizar EEG leads to Estudios EEG, which hosts the single-study evaluation; the timeline is only a dotted line; the probability curve and the age-norm bands are drawn from the model and the centiles
This commit is contained in:
@@ -5,6 +5,7 @@ import type { Catalog, Category, HistoryPanel } from './pages';
|
||||
const OLIVE = '#A8C243';
|
||||
const ROSE = '#C24269';
|
||||
export const SHORT = '.1~f';
|
||||
const SIGNIFICANT = '.2~r';
|
||||
export const percentAxis = {
|
||||
type: 'linear' as const,
|
||||
ticksuffix: ' %',
|
||||
@@ -443,8 +444,8 @@ export function valueAxis(values: Iterable<number | null | undefined>) {
|
||||
const narrow = found.length > 0 && Math.max(...found) - Math.min(0, ...found) <= 5;
|
||||
return {
|
||||
type: 'linear' as const,
|
||||
tickformat: counts ? 'd' : SHORT,
|
||||
hoverformat: counts ? 'd' : SHORT,
|
||||
tickformat: counts ? 'd' : SIGNIFICANT,
|
||||
hoverformat: counts ? 'd' : '.3~r',
|
||||
...(counts && narrow ? { dtick: 1 } : {}),
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user