1

in plotly dash it is possible to select lines based on clicking on the legend items. At the beginning they are all preselected. Is it possible to unselect them all at the start of the dashboard? Thanks

1 Answer 1

2

They are all preselected because the parameter "visible" of the scatter function is True by default, see here for reference: https://plot.ly/python/reference/#scatter

You can can have them unselected via setting the parameter to False:

go.Scatter(
    ...,
    visible=False
)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.