Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/app/compatibility/weekly_contributions.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
"use client";
import { ReferenceLine } from "recharts";
import { BarChart } from "@mantine/charts";
import { Paper, Text } from "@mantine/core";
import classes from "./weekly_contributions.module.css";
Expand Down Expand Up @@ -36,6 +35,9 @@ export function WeeklyContributions({ data }: { data: DataPoint[] }) {
h={300}
w="100%"
data={data}
// This manually updated grid property is a workaround for https://github.com/mantinedev/mantine/issues/8110,
// a regression with switching to Recharts 3. TODO: Remove when fixed.
gridProps={{ yAxisId: "left" }}
dataKey="week"
series={[{ name: "Commits", color: "ruffle-orange" }]}
tooltipProps={{
Expand All @@ -44,10 +46,6 @@ export function WeeklyContributions({ data }: { data: DataPoint[] }) {
),
}}
className={classes.chart}
>
{/* This invisible line is a workaround for https://github.com/mantinedev/mantine/issues/8110,
a regression with switching to Recharts 3. TODO: Remove when fixed. */}
<ReferenceLine y={0} stroke="transparent" ifOverflow="extendDomain" />
</BarChart>
/>
);
}