Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

uirevision equal to 0 does not preserve ui state in dcc.Graph

Open
#116 2 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from plotly/graphing-library-docs

All issues in plotly/graphing-library-docs

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.