-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Tooltip positioning on a scaled <div style={{ transform: 'scale(2)' }} /> #2033
Comments
Closing because the PR was merged 🎉 Thank @plouc |
Hi, @plouc sorry to bother you 🙏 . Maybe it's explained somewhere but I don't find it. |
@andresgutgon, no problem, there's no real release cycle, it depends pretty much on the time I can find to work on the project. I've released this fix in |
Shit : / Sorry for that. We don't use any canvas chart and I missed that |
Oh! I just saw you fixed it #2125 🙌 |
What?
When a chart is inside a div that is scaled tooltip positioning is not correct.
Look at the end how the cursors doesn't correspond with the
Mesh
that I put in debug mode 👀zoom-chart.mp4
Describe the solution you'd like
I made a PR with it #2034
Describe alternatives you've considered
The thing is that event position is not calculated ok inside an scaled div. The alternative is to find the scaling factor to calculate position
Additional context
This is the canvas lib I'm using as you can see the nodes can be zoom-in/zoom-out
Thanks
Thanks a lot for Nivo. It's awesome and super well documented. 🙌
The text was updated successfully, but these errors were encountered: