Yaxis values remain after plotly.react call is made to modify the data of a chart with orientation="h"
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 18.3k
- Forks
- 2k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 28
Description
With newplot, the chart renders correctly both times but plotly.react contains old yaxis values the second time it is called. The react chart's fullData shows only the "new" y values but the old ones are still getting rendered.

codepen of bar graph in horizontal orientation that reproduces the issue
codepen of bar graph in vertical orientation which works as expected
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 horizontal bar-chart reproduction in the linked CodePen and compare its second plotly.react call with the working vertical example. Trace how plotly.react updates horizontal bar y-axis values, then verify that the old values are no longer rendered after the update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100