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
Introduce tooltip.position callback function #833
Conversation
to control the position of the tooltip programmatically
f5abea8
to
7062e0a
Compare
Introduce tooltip.position callback function
Looks nice. Thank you very much!! |
Oh rad! Good to know it can do this now. The documentation definitely needs to be updated to include this! |
Thanks a lot, you save my night! |
Is it possible to modify top while leaving left unchanged, or vice-versa, or is it always necessary to recalculate both? |
There's just one problem: |
If we are using xs in data how to get 'cx' and 'cy' values of point. |
This does not work for bar charts. |
How this code will work with donut chart? Any Help? |
Thanks for the code. This one works for me for line and bar charts.
Maybe it is helpful to someone |
Can the function be an external file? |
Added a callback function to control the position of the tooltip programmatically to tooltip configuration.
circle
element is given ifgrouped
option is false andregion
element is given if it's true.This callback function allows to show tooltip on the top of the data points like this.

with following configuration.