Tooltip for Labels/Title #9222
Replies: 4 comments
-
@beowulf29a I don't believe there are any options relating to long vs truncated text. Which callback are you using? |
Beta Was this translation helpful? Give feedback.
-
@beowulf29a what custom code have you used to truncate labels ? |
Beta Was this translation helpful? Give feedback.
-
@souhaiebtar i overwrote the tooltip/label callbacks: |
Beta Was this translation helpful? Give feedback.
-
Oh! And @souhaiebtar I had wanted it for the axis labels, but I ended up having to write my own methods to truncate them :( |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Expected Behavior
Tooltips for title/label
Current Behavior
event/callback not utilized as expected
Possible Solution
raise events for when user hovers over title/labels
Steps to Reproduce (for bugs)
Context
I have some long strings for the title/label and want to truncate them. I wrote some special code to handle showing the long vs. truncated text. However, I wanted to know if this functionality is already available (a 'max length/width' for text)?
I am not certain whether there is a flag I am missing, but the callback/tooltip render seems to indicate an event is fired when hovering over these elements. However, I don't know whether my assumption is correct, or, hover events are fired for title/labels (in which case I can modify the library directly :))
Environment
Beta Was this translation helpful? Give feedback.
All reactions