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 1
1
"use client" ;
2
- import { ReferenceLine } from "recharts" ;
3
2
import { BarChart } from "@mantine/charts" ;
4
3
import { Paper , Text } from "@mantine/core" ;
5
4
import classes from "./weekly_contributions.module.css" ;
@@ -36,6 +35,9 @@ export function WeeklyContributions({ data }: { data: DataPoint[] }) {
36
35
h = { 300 }
37
36
w = "100%"
38
37
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" } }
39
41
dataKey = "week"
40
42
series = { [ { name : "Commits" , color : "ruffle-orange" } ] }
41
43
tooltipProps = { {
@@ -44,10 +46,6 @@ export function WeeklyContributions({ data }: { data: DataPoint[] }) {
44
46
) ,
45
47
} }
46
48
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
+ />
52
50
) ;
53
51
}
You can’t perform that action at this time.
0 commit comments