You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you share an example of your code (codepen/jsbin/jsfiddle) where this isn't working for you? A graph div with a box plot will emit a plotly_hover event that you can bind a function to like so:
vargraphDiv=document.getElementById('graph-div');graphDiv.on('plotly_hover',function(data){// do something with the emitted data here});
+1 for separate hover tool tips for the data points, my users would like to be able to hover the points for labels associated with the numerical data being plotted
Select/lasso dragmodes are coming to box traces soon; it might be good to tackle this ticket too.
To get this done, I'm thinking about adding a hoveron attribute to box trace (similar to scatter and scatterternary):
// (default) this would correspond to the current behavior
hoveron: 'boxes'// display hover labels for the visible boxpoints only// this would support multiple labels per box and per traces // for hovermode 'x' and 'y'
hoveron: 'points'// both modes at the same time,// where 'boxes' would take precedence when cursor is over a box
hoveron: 'points+boxes'
👍 love this! points+boxes will be great, hoveron seems right to me.
I suppose that hovermode options could apply here as well (think horizontally stacked box plots with points)
Sounds great! hoveron and its values sound perfect. Only question is about:
'boxes' would take precedence when cursor is over a box
I'd probably have gone the other way, since the box is large and has a permissive hover region, give the points small hover regions (reuse the way scatter does it) but let them take precedence within that region.
Activity
mdtusz commentedon Jan 19, 2016
Could you share an example of your code (codepen/jsbin/jsfiddle) where this isn't working for you? A graph div with a box plot will emit a
plotly_hoverevent that you can bind a function to like so:joshua-gould commentedon Jan 19, 2016
http://codepen.io/anon/pen/mVqQyY
When you hover any of the data points (not the box and whisker itself), I would like to show a tooltip corresponding to the text array.
mdtusz commentedon Jan 19, 2016
@etpinard perhaps can chime in with more details on this.
etpinard commentedon Jan 19, 2016
@joshua-gould that'd be a nice feature. Thanks for the suggestion!
I suspect making this happen will be tricky. But it could be a good opportunity to split up
graph_interact.jsjoshua-gould commentedon Feb 10, 2016
One workaround is to create an additional scatter trace.
ifll commentedon Feb 14, 2017
Recently I was seeking for the exact same feature.
If it were possible to have it the close future that would be very nice.
MikeRixWolfe commentedon Aug 10, 2017
+1 for separate hover tool tips for the data points, my users would like to be able to hover the points for labels associated with the numerical data being plotted
gfairchild commentedon Aug 24, 2017
I'd love this feature.
etpinard commentedon Oct 13, 2017
Select/lasso dragmodes are coming to box traces soon; it might be good to tackle this ticket too.
To get this done, I'm thinking about adding a
hoveronattribute to box trace (similar to scatter and scatterternary):any thoughts on this @alexcjohnson @cldougl @chriddyp ?
chriddyp commentedon Oct 13, 2017
👍 love this!
points+boxeswill be great,hoveronseems right to me.I suppose that
hovermodeoptions could apply here as well (think horizontally stacked box plots with points)alexcjohnson commentedon Oct 13, 2017
Sounds great!
hoveronand its values sound perfect. Only question is about:I'd probably have gone the other way, since the box is large and has a permissive hover region, give the points small hover regions (reuse the way scatter does it) but let them take precedence within that region.
dejanskledar commentedon Oct 23, 2017
I have difficulties producing the implemented hover effect:
https://codepen.io/anon/pen/BwerzQ
What did I miss? I used the latest 1.32.1 version...
etpinard commentedon Oct 23, 2017
@dejanskledar #2094 hasn't been released yet.
See changelog here: https://github.com/plotly/plotly.js/releases
dejanskledar commentedon Oct 24, 2017
Oh, I misunderstood the 62 commits to master thinking that these commits are already included. Thanks.
dejanskledar commentedon Oct 24, 2017
@etpinard Is there any other way to get the latest lib with #2094 included before the official release?
etpinard commentedon Oct 24, 2017
@dejanskledar please ask questions of the likes on https://community.plot.ly/
Thanks.