Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to overide the value displayed when the mouse is over with a text? #3954

Closed
Phil353556 opened this issue Feb 24, 2025 · 2 comments
Closed
Labels

Comments

@Phil353556
Copy link

Hello,

When the pointer is over a circle like on the screenshot, how to overide the value (for example on the screenshot the value 3) by a word here "degraded" written for y lines (text)?

There is no decimal value only 1 , 2 to 8
and for each value there is a word mapped.
I hope I'm clear enough, sorry, and I don't know if it is possible or not.
Thanks for your help
Phil

Image

Image

@netil
Copy link
Member

netil commented Feb 25, 2025

Hi @Phil353556, when you need some customization, plz refer all options or API provided.
Answering your question, you can use tooltip.format.value option to update some tooltip value.

checkout the working example:

@Phil353556
Copy link
Author

@netil As usual, you have the answer and demonstrate with an example, that really useful.
A huge thanks
Phil

@netil netil closed this as completed Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants