fix: use monotone interpolation for smooth dashboard chart curves
This commit is contained in:
@@ -525,13 +525,13 @@ export default function Chart({
|
|||||||
})}
|
})}
|
||||||
|
|
||||||
<Area
|
<Area
|
||||||
type="bump"
|
type="monotone"
|
||||||
dataKey={metric}
|
dataKey={metric}
|
||||||
fill="url(#areaFill)"
|
fill="url(#areaFill)"
|
||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
<Line
|
<Line
|
||||||
type="bump"
|
type="monotone"
|
||||||
dataKey={metric}
|
dataKey={metric}
|
||||||
stroke={chartConfig[metric]?.color}
|
stroke={chartConfig[metric]?.color}
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
Reference in New Issue
Block a user