We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4797bb commit c656fdaCopy full SHA for c656fda
1 file changed
src/components/ui/chart/bars.tsx
@@ -1,5 +1,7 @@
1
import { Fragment } from "react/jsx-runtime"
2
3
+import { themeData } from "data/theme"
4
+import { useAtomValue } from "lib/yaasl"
5
import { cn } from "utils/cn"
6
7
import {
@@ -53,6 +55,7 @@ export const Bars = ({
53
55
fillColor = "default",
54
56
printValue,
57
}: BarsProps) => {
58
+ const { radius } = useAtomValue(themeData)
59
const { scalePoint, scaleY } = useChartContext()
60
const bars = points.map(point => {
61
const top = scalePoint(point)
@@ -70,8 +73,8 @@ export const Bars = ({
70
73
ref={node => {
71
74
runBarTransition({ node, items: bars.length, index })
72
75
}}
- rx={2}
- ry={2}
76
+ rx={radius / 3}
77
+ ry={radius / 3}
78
x={top.x - barWidth / 2}
79
y={top.y}
80
width={barWidth}
0 commit comments