- {dict.inflow}:
{data.inflow.toFixed(1)} m³/s
+
+
+ {dict.inflow}: {data.inflow.toFixed(1)} m³/s
+
{dict.outflow}: {data.outflow.toFixed(1)} m³/s
{flowDiff > 0 ? : flowDiff < 0 ? : null}
diff --git a/src/components/LakeDetail.tsx b/src/components/LakeDetail.tsx
index 2c826fd..75ff4e2 100644
--- a/src/components/LakeDetail.tsx
+++ b/src/components/LakeDetail.tsx
@@ -44,16 +44,18 @@ const CustomTooltip = ({ active, payload, label, language, isWeather }: any) =>
{payload.map((entry: any, index: number) => {
let labelStr = '';
let unit = '';
- if (entry.dataKey === 'level') { labelStr = dict.level; unit = 'm n. m.'; }
- else if (entry.dataKey === 'outflow') { labelStr = dict.outflow; unit = 'm³/s'; }
- else if (entry.dataKey === 'inflow') { labelStr = dict.inflow; unit = 'm³/s'; }
+ let color = '';
+ if (entry.dataKey === 'level') { labelStr = dict.level; unit = 'm n. m.'; color = 'var(--color-cyan)'; }
+ else if (entry.dataKey === 'outflow') { labelStr = dict.outflow; unit = 'm³/s'; color = 'var(--color-orange)'; }
+ else if (entry.dataKey === 'inflow') { labelStr = dict.inflow; unit = 'm³/s'; color = '#8b5cf6'; }
if (!labelStr || (entry.dataKey === 'inflow' && entry.value === 0)) return null;
return (
-
- {labelStr}: {entry.value.toFixed(entry.dataKey === 'level' ? 2 : 1)} {unit}
-
+
+
+ {labelStr}: {entry.value.toFixed(entry.dataKey === 'level' ? 2 : 1)} {unit}
+
);
})}