How to handle labels in x-axis in ellipsis format #3977
Unanswered
Srishti-wmp
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I want to show all the labels on x-axis in ellipsis format and onhovering the labels tooltip should show the actual context.
To achieve this, I tried two approaches:
The formatter code I used:
formatter: function(value) {
const maxLength = 10;
if (value && value.length > maxLength) {
return value.substring(0, maxLength) + "...";
}
return value;
},
I need to show all the labels in continuity and the tooltip should show actual context of the labels. Can anyone please help me to achieve this.
Beta Was this translation helpful? Give feedback.
All reactions