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

Ordinal scale hovering at the chart level #9

Open
atdyer opened this issue Jan 10, 2017 · 1 comment
Open

Ordinal scale hovering at the chart level #9

atdyer opened this issue Jan 10, 2017 · 1 comment

Comments

@atdyer
Copy link
Owner

atdyer commented Jan 10, 2017

Keep an eye on d3/d3-scale#60 for the ordinal scale .invert() method. Bar charts, for example, support hovering at the local level, i.e. when the mouse enters an individual bar a hover event is fired. At the chart level, however, hovering is not supported for ordinal scales, i.e. when the mouse is over the chart (but not a bar) an event is fired.

Interested to see how it will be implemented (if at all). With padding between bands, what will .invert() return for a value between bands?

@atdyer
Copy link
Owner Author

atdyer commented Jan 11, 2017

Strava also has a cool way of doing things, they put a cursor area that extends to the top of the chart over each bar (cursor area width is the same as the bar width). So if a bar is really short you're still able to hover over it.

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