fix: switch from natural to bump interpolation to prevent overshoot
This commit is contained in:
@@ -451,7 +451,7 @@ export default function Chart({
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="w-full overflow-hidden" onContextMenu={handleChartContextMenu}>
|
<div className="w-full" onContextMenu={handleChartContextMenu}>
|
||||||
<ChartContainer
|
<ChartContainer
|
||||||
config={chartConfig}
|
config={chartConfig}
|
||||||
className="h-96 w-full overflow-visible [&_.recharts-curve.recharts-tooltip-cursor]:stroke-[initial]"
|
className="h-96 w-full overflow-visible [&_.recharts-curve.recharts-tooltip-cursor]:stroke-[initial]"
|
||||||
@@ -527,13 +527,13 @@ export default function Chart({
|
|||||||
})}
|
})}
|
||||||
|
|
||||||
<Area
|
<Area
|
||||||
type="natural"
|
type="bump"
|
||||||
dataKey={metric}
|
dataKey={metric}
|
||||||
fill="url(#areaFill)"
|
fill="url(#areaFill)"
|
||||||
stroke="none"
|
stroke="none"
|
||||||
/>
|
/>
|
||||||
<Line
|
<Line
|
||||||
type="natural"
|
type="bump"
|
||||||
dataKey={metric}
|
dataKey={metric}
|
||||||
stroke={chartConfig[metric]?.color}
|
stroke={chartConfig[metric]?.color}
|
||||||
strokeWidth={2}
|
strokeWidth={2}
|
||||||
|
|||||||
Reference in New Issue
Block a user