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

Use centroid instead of center when positioning tooltips using tooltip.trigger: "selection" #9

Open
rarylson opened this issue Dec 4, 2017 · 0 comments

Comments

@rarylson
Copy link
Owner

rarylson commented Dec 4, 2017

Use centroid (equivalent to center of mass) instead of center (geometrical center) when positioning tooltips using tooltip.trigger: "selection".

Google Charts uses this behavior, as showed in the images bellow, when centering the Slavbard country (its islands doesn't drastically change the tooltip position as using the geometrical center does).

screenshot from 2017-11-30 17-35-21

screenshot from 2017-11-30 17-35-27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant