plotly / plotly/plotly.js

Yaxis values remain after plotly.react call is made to modify the data of a chart with orientation="h"

Open
#5,381 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
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.

Peek 2021-01-06 16-14

codepen of bar graph in horizontal orientation that reproduces the issue

codepen of bar graph in vertical orientation which works as expected

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.