semiotic icon indicating copy to clipboard operation
semiotic copied to clipboard

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

Open ShadyStego opened this issue 6 years ago • 2 comments

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".

ShadyStego avatar Apr 18 '19 21:04 ShadyStego

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.

emeeks avatar Apr 22 '19 15:04 emeeks

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

ShadyStego avatar Apr 24 '19 00:04 ShadyStego