Skip to content

Commit

Permalink
fix: tooltip overlap with static vertical position
Browse files Browse the repository at this point in the history
Signed-off-by: rare-magma <[email protected]>
  • Loading branch information
rare-magma committed Oct 15, 2023
1 parent 761d25b commit 387504a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ function Chart({
/>
)}
<Tooltip
allowEscapeViewBox={{ x: false, y: false }}
position={{ y: 0 }}
content={<ChartTooltip key1={tooltipKey1} key2={tooltipKey2} />}
contentStyle={{ backgroundColor: "var(--bgcolor)" }}
itemStyle={{ color: "var(--textcolor)" }}
Expand Down

0 comments on commit 387504a

Please sign in to comment.