Update therapeutic range settings add toggle

This commit is contained in:
2026-01-08 18:09:26 +00:00
parent bd5bb647b2
commit c7a3068e1c
6 changed files with 56 additions and 35 deletions

View File

@@ -41,6 +41,7 @@ const SimulationChart = ({
chartView,
showDayTimeOnXAxis,
showDayReferenceLines,
showTherapeuticRange,
therapeuticRange,
simulationDays,
displayedDays,
@@ -396,7 +397,7 @@ const SimulationChart = ({
yAxisId="concentration"
/>
))}
{(chartView === 'damph' || chartView === 'both') && (
{showTherapeuticRange && (chartView === 'damph' || chartView === 'both') && (
<ReferenceLine
y={parseFloat(therapeuticRange.min) || 0}
label={{ value: t('refLineMin'), position: 'insideTopLeft' }}
@@ -406,7 +407,7 @@ const SimulationChart = ({
yAxisId="concentration"
/>
)}
{(chartView === 'damph' || chartView === 'both') && (
{showTherapeuticRange && (chartView === 'damph' || chartView === 'both') && (
<ReferenceLine
y={parseFloat(therapeuticRange.max) || 0}
label={{ value: t('refLineMax'), position: 'insideTopLeft' }}