Skip to content

Dynamic hoverinfo placement based on axis location #1469

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

Closed
rpaskowitz opened this issue Mar 13, 2017 · 2 comments
Closed

Dynamic hoverinfo placement based on axis location #1469

rpaskowitz opened this issue Mar 13, 2017 · 2 comments
Labels
feature something new

Comments

@rpaskowitz
Copy link
Contributor

From discussion on #1461 , the position of the hoverinfo drawn on points should be based not only on how close the point is to the edge of the chart, but also based on which axis the point refers to. Today in instances where the datapoint is plotted on a right axis the hoverinfo can be drawn over the axis making it harder to understand the point's relative position. For example, on mocks/multiple_axes_multiple.json:
image

From @alexcjohnson:

if we did this based on the pixel position of the axis relative to the hovered-on point, rather than on the side, then if you put a free axis over the middle of the plot, the labels would flip as you cross the axis, which seems like it would be a cool & useful effect - and you'd automatically get it right for free axes off the edge

@etpinard
Copy link
Contributor

Thanks for pointing this out @rpaskowitz !

Similar to #1468 (comment), I think this proposed could be turned on/off by a boolean in the cartesian axis attributes.

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

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

No branches or pull requests

3 participants