plotly / plotly/graphing-library-docs
uirevision equal to 0 does not preserve ui state in dcc.Graph
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 59
- Forks
- 72
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 3
Description
Not sure if this belongs here or in plotly, so let me know if this should be moved.
I was trying to add uirevision to preserve legend selections on a barchart, so I set uirevision=0 and left it unchanged. The chart continued to reset the selections back to the default when the chart was updated.
However, if the value of uirevision is changed to 1, and left unchanged, then it works as expected.
According to this post, uirevision can be set to any value, and the chart should only reset the ui state when the value is changed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the dcc.Graph entry point and reproduce the barchart behavior using uirevision=0, then compare it with the unchanged value 1. Check the linked community post for the expected semantics; done means legend selections remain preserved across chart updates when uirevision stays at 0.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- plotly, python
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100