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
The compare mode bar button behaviour is for 'x' axis rather than even when you set all the traces to horizontal (orientation of 'h').
If you set the traces as horizontal the Mode Bar and set the hovermode to 'y' the button is unselected (so is the closest button) even though the expected 'y' hovermode behaviour occurs when hovering.
The first is a horizontal bar chart showing the correct and expected behaviour in both the chart and the button.
The second chart shows a horizontal scatter chart (all traces are horizontal) with hovermode set to 'y' and you get the correct behaviour on hovering but the button is unselected. If you click on the compare button you get 'x' axis compare behaviour instead. To get 'y' mode behaviour requires a refresh of the page.
The third chart is a copy of the second chart but includes a workaround to force the correct behaviour using the plotly_afterplot event to update the hovermode and the button state.
The text was updated successfully, but these errors were encountered:
PaulRCooper
changed the title
Compare Mode Bar button is for 'x' axis not 'y'axis when all Scatter Chart traces are all Horizontal
Compare Mode Bar button is for 'x' axis not 'y'axis when all Scatter Chart traces are Horizontal
Mar 8, 2019
The second chart shows a horizontal scatter chart (all traces are horizontal) with hovermode set to 'y' and you get the correct behaviour on hovering but the button is unselected. If you click on the compare button you get 'x' axis compare behaviour instead. To get 'y' mode behaviour requires a refresh of the page.
The compare mode bar button behaviour is for 'x' axis rather than even when you set all the traces to horizontal (orientation of 'h').
If you set the traces as horizontal the Mode Bar and set the hovermode to 'y' the button is unselected (so is the closest button) even though the expected 'y' hovermode behaviour occurs when hovering.
See example at https://jsbin.com/wibivof. Here I have 3 charts:
The first is a horizontal bar chart showing the correct and expected behaviour in both the chart and the button.
The second chart shows a horizontal scatter chart (all traces are horizontal) with hovermode set to 'y' and you get the correct behaviour on hovering but the button is unselected. If you click on the compare button you get 'x' axis compare behaviour instead. To get 'y' mode behaviour requires a refresh of the page.
The third chart is a copy of the second chart but includes a workaround to force the correct behaviour using the plotly_afterplot event to update the hovermode and the button state.
Possibly relates to issue #778
The text was updated successfully, but these errors were encountered: