fix(growth): connectNulls on WHO curves — baby measurement rows break percentile lines
This commit is contained in:
@@ -421,7 +421,7 @@ export default function GrowthPage() {
|
|||||||
<YAxis tick={{ fontSize: 10, fill: "#94a3b8" }} axisLine={false} tickLine={false} />
|
<YAxis tick={{ fontSize: 10, fill: "#94a3b8" }} axisLine={false} tickLine={false} />
|
||||||
<Tooltip content={(props) => <WeightTooltip {...props} style={tooltipStyle} />} />
|
<Tooltip content={(props) => <WeightTooltip {...props} style={tooltipStyle} />} />
|
||||||
{WHO_CURVE_KEYS.map((key, i) => (
|
{WHO_CURVE_KEYS.map((key, i) => (
|
||||||
<Line key={key} dataKey={key} stroke={WHO_COLORS[i]} strokeWidth={key === "p50" ? 1.5 : 1} dot={false} strokeDasharray={key === "p50" ? undefined : "3 2"} />
|
<Line key={key} dataKey={key} stroke={WHO_COLORS[i]} strokeWidth={key === "p50" ? 1.5 : 1} dot={false} strokeDasharray={key === "p50" ? undefined : "3 2"} connectNulls />
|
||||||
))}
|
))}
|
||||||
<Line dataKey="actualWeight" stroke="#4f46e5" strokeWidth={2.5} dot={{ r: 4, fill: "#4f46e5", strokeWidth: 2, stroke: "#fff" }} connectNulls={false} />
|
<Line dataKey="actualWeight" stroke="#4f46e5" strokeWidth={2.5} dot={{ r: 4, fill: "#4f46e5", strokeWidth: 2, stroke: "#fff" }} connectNulls={false} />
|
||||||
</LineChart>
|
</LineChart>
|
||||||
|
|||||||
Reference in New Issue
Block a user