uirevision equal to 0 does not preserve ui state in dcc.Graph
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- plotly, python
- Domain
- data-visualization
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.
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.
- Dominant language
- Jupyter Notebook
- Stars
- 59
- Forks
- 73
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 4
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.
More from plotly/graphing-library-docs
-
Difficulty 2/5 1-3 hours Newbie friendliness 58/100
plotly/graphing-library-docs#406 ·
-
documentation enhancement
plotly/graphing-library-docs#383 · 1 assignee ·
-
documentation enhancement
plotly/graphing-library-docs#378 · 1 assignee ·
-
Difficulty 1/5 Under an hour Newbie friendliness 35/100
plotly/graphing-library-docs#341 ·
-
enhancement
plotly/graphing-library-docs#338 · 1 comment · 1 assignee ·
All issues in plotly/graphing-library-docs
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
duplicate invalid
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
anthropics/claude-code#96312 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
iVis-at-Bilkent/newt#984 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
palladius/ricc.rocks#7 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
pydata/pydata-sphinx-theme#2503 ·