File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11"use client" ;
2- import { ReferenceLine } from "recharts" ;
32import { BarChart } from "@mantine/charts" ;
43import { Paper , Text } from "@mantine/core" ;
54import classes from "./weekly_contributions.module.css" ;
@@ -36,6 +35,9 @@ export function WeeklyContributions({ data }: { data: DataPoint[] }) {
3635 h = { 300 }
3736 w = "100%"
3837 data = { data }
38+ // This manually updated grid property is a workaround for https://github.com/mantinedev/mantine/issues/8110,
39+ // a regression with switching to Recharts 3. TODO: Remove when fixed.
40+ gridProps = { { yAxisId : "left" } }
3941 dataKey = "week"
4042 series = { [ { name : "Commits" , color : "ruffle-orange" } ] }
4143 tooltipProps = { {
@@ -44,10 +46,6 @@ export function WeeklyContributions({ data }: { data: DataPoint[] }) {
4446 ) ,
4547 } }
4648 className = { classes . chart }
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 >
49+ />
5250 ) ;
5351}
You can’t perform that action at this time.
0 commit comments