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

All components: interactive prop does not reliably suppress clickable legend #154

Open
bobular opened this issue Jun 17, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@bobular
Copy link
Member

bobular commented Jun 17, 2021

This is to be looked at after #150

If you look at a story with a plot with interactive: false, such as /story/plots-histogram--some-covid-data then mouse-overs and clickable legend are disabled, as desired.

If you then switch to interactive: true using storybook controls, the mouse-overs and clickable legend are activated.

All good so far!

Then if you set interactive: false again, the mouse-overs stop (as desired) but the clickable legend is still active (not desired).

Behaviour confirmed for histogram and pieplot.

See also VEuPathDB/web-eda#172 - possibly solved by disabling clickable legend at all times (if we cannot maintain the (plotly) state in our application) - see https://plotly.com/javascript/reference/layout/#layout-legend-itemclick

@bobular bobular added the bug Something isn't working label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant