Skip to content

Commit c9e6bc1

Browse files
torokati44danielhjacobs
authored andcommitted
Add a workaround for invisible grid lines on the weekly contributions bar chart
Credit to @danielhjacobs for finding it.
1 parent cd154f5 commit c9e6bc1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/app/compatibility/weekly_contributions.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"use client";
2+
import { ReferenceLine } from "recharts";
23
import { BarChart } from "@mantine/charts";
34
import { Paper, Text } from "@mantine/core";
45
import classes from "./weekly_contributions.module.css";
@@ -43,6 +44,10 @@ export function WeeklyContributions({ data }: { data: DataPoint[] }) {
4344
),
4445
}}
4546
className={classes.chart}
46-
/>
47+
>
48+
{/* This invisible line is a workaround for https://github.com/mantinedev/mantine/issues/8110,
49+
a regression with switching to Recharts 3. TODO: Remove when fixed. */}
50+
<ReferenceLine y={0} stroke="transparent" ifOverflow="extendDomain" />
51+
</BarChart>
4752
);
4853
}

0 commit comments

Comments
 (0)