Change tickmark
#1606
-
Hi, to circle, like this: I could not find any docs how to do it. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
wyze
Jun 21, 2021
Replies: 1 comment 1 reply
-
You can pass a custom component to You would do something like the following: function CustomTick(props) {
return (
<g>
<circle {...} />
<text {...}>{value</text>
</g>
)
}
function Chart() {
return <Bar {...} axisBottom={{ renderTick: CustomTick }} />
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
plouc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can pass a custom component to
renderTick
. The default implementation is here: https://github.com/plouc/nivo/blob/master/packages/axes/src/components/AxisTick.tsxYou would do something like the following: