+
{label}
+ {payload.map((entry) => {
+ const color = entry.dataKey === "max" ? maxColor : avgColor;
+ const v = entry.value;
+ const display = v === null || v === undefined ? "—" : `${v} min`;
+ return (
+
+ {entry.name} : {display}
+
+ );
+ })}
+
+ );
}}
/>
-