Skip to content

Truncate label text but show full text on hover #270

Answered by tannerlinsley
sarwech asked this question in Q&A
Discussion options

You must be logged in to vote

You should be able to use options.formatters to change the formatter for specific rendering points of the labels. It's not documented yet, but this should be enough to get you started: https://github.com/tannerlinsley/react-charts/blob/beta/src/utils/buildAxis.linear.ts#L182-L203

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sarwech
Comment options

@sarwech
Comment options

@tannerlinsley
Comment options

@sarwech
Comment options

@tannerlinsley
Comment options

Answer selected by sarwech
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants