Fix various issues with pharmacokinetics, improved parameters, distinction between adult/child
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user