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

Support for shared Voronoi (for Hover/Tooltip) when showing dual axis on XYFrame #464

Open
ShadyStego opened this issue Apr 18, 2019 · 2 comments

Comments

@ShadyStego
Copy link
Contributor

Currently if we want to show dual axis on the XYFrame we'd have to create 1 Frame on top of another Frame. Visually it'll look correct, but the voronoi generated will only be based on the top frame, which results in the tooltip to be less "responsive".

@emeeks
Copy link
Member

emeeks commented Apr 22, 2019

The only built-in support for dual axis charts happens in ORFrame, where you can use points and connectors to make line charts. If you want to do it in XYFrame, right now, you'll need to precalculate the percent of maximum for your different lines, and then you can use tickFormat to make the axes give the correct values. It's a bit manual--I'll see if there's any simple way to get dual axes working there.

@ShadyStego
Copy link
Contributor Author

Thanks. The current workaround I did today (which is quite verbose), is to shift the secondary data points to match the primary data points along the x axis. I then created a standalone Axis object and 'relative- position' it based on need. Example:

image

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

3 participants