subtitle edit config does not always work
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 24.4k
- Forks
- 2.3k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 13
Description
Subtitles do not work when dcc.Graph() config toggles from config={editable: True} to config={editable: False}. Standalone it works as expected, and subtitle is the only layout feature that is affected by this. The bug only occurs going from True to False.
def plot_config(is_none=False):
if not is_none:
return {
"displaylogo": False,
"modeBarButtonsToRemove": ["zoom", "pan", "zoomIn", "zoomOut", "autoScale", "lasso2d", "select2d", "toImage"],
"edits": {
"axisTitleText": True,
"legendPosition": True,
"titleText": True
}
}
return {
"displayModeBar": False,
"staticPlot": True,
"editable": False
}
Video for added clarity
Description: On launch, the plot has no data, and is not editable, which is the desired behavior. Then off screen I select some filters which populate the chart with data. The subtitle for this chart is set to editable, and I can edit it as expected. Then I remove data from the chart, and it renders the same chart and settings as the chart on launch, except here the subtitle is not reset, and is editable.
Contributor guide
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() configuration path and reproduce the transition from editable=True to editable=False described in the issue and video. Confirm that subtitle editing is reset when data is removed and the non-editable configuration returns; done means the subtitle is no longer editable after that transition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100