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

Tooltips are not correct when chart is scaled with transform #1849

Closed
Linkaynn opened this issue Aug 20, 2020 · 2 comments
Closed

Tooltips are not correct when chart is scaled with transform #1849

Linkaynn opened this issue Aug 20, 2020 · 2 comments

Comments

@Linkaynn
Copy link

Linkaynn commented Aug 20, 2020

Bug report

Codepen

https://codepen.io/linkaynn/pen/RwaGvVP

Explanation

When you scale a chart the tooltip position and information is not correct, when scale is > 1 it takes the points at the right from mouse position and if scale is < 1 takes the left points

What is the behavior you expect?

That tooltips takes correct positions and information

@junedchhipa
Copy link
Contributor

This is not a bug, but a limitation.
All the dimensions get changed when you transform the whole chart element and it is difficult to get the precise location.
I recommend you don't scale, but manually set the height/width of the chart to make it smaller.

@Linkaynn
Copy link
Author

@junedchhipa I already send a PR solving the limitation if you can see whats change: #1850

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

Successfully merging a pull request may close this issue.

2 participants