semiotic
semiotic copied to clipboard
Support for shared Voronoi (for Hover/Tooltip) when showing dual axis on XYFrame
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".
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.
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:
