Fix various issues with pharmacokinetics, improved parameters, distinction between adult/child

This commit is contained in:
2026-01-17 20:27:00 +00:00
parent b911fa1e16
commit 6983ce3853
13 changed files with 1505 additions and 115 deletions

View File

@@ -209,12 +209,10 @@ const chartDomain = React.useMemo(() => {
// User set yAxisMax explicitly - use it as-is without padding
domainMax = numMax;
} else if (dataMax !== -Infinity) { // data exists
// No padding needed since it seems to be added automatically by Recharts
// // Auto mode: add 5% padding above
// const range = dataMax - dataMin;
// const padding = range * 0.05;
// domainMax = dataMax + padding;
domainMax = dataMax;
// Auto mode: add 5% padding above
const range = dataMax - dataMin;
const padding = range * 0.05;
domainMax = dataMax + padding;
} else { // no data
domainMax = 100;
}