Document or validate Plotly layout title objects instead of silently dropping string titles

Open
#7,101 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
plotly, python

Research direction

Start with the reproduction described in the issue and inspect results/out_dev/plotly.json, including probe_initial and probe_after_layout. Trace how rx.plotly passes layout.title to Plotly, then determine whether string titles should be converted or rejected. Done means the title is displayed correctly or a clear validation error and documentation are provided, with regression coverage.

Written by the indexing model from the issue text.

Description

rx.plotly(data=…, layout={"title": "layout-from-state", "height": 300}): the rest of the layout
applies (verified by toggling paper_bgcolor), but _fullLayout.title.text is plotly's editable
placeholder "Click to enter Plot title" and no title is drawn. plotly.js 3.x requires
{"title": {"text": "…"}}. Identical on 4.0.0/0.9.10.post2. Evidence: probe_initial /
probe_after_layout in results/out_dev/plotly.json.

Source: prerelease finding 034-06, recorded against Reflex 0.9.11a1 and compared with 0.9.10.post2. See the full campaign report and cluster notes and reproduction artifacts. Findings and verification status above are from that campaign; this filing does not claim a new browser rerun.

Dominant language
Python
Stars
28.9k
Forks
1.8k
Avg merge
2d 2h
Merged PRs (30d)
170

Contributor guide

Open the contributing guide

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 reflex-dev/reflex

All issues in reflex-dev/reflex

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.