plotly / plotly/react-plotly.js

When rendering two charts the layout properties of the second chart overwrites the first chart layout properties

Open
#352 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
138
Avg merge
3d 2h
Merged PRs (30d)
4

Description

Only the layout properties set for the second chart overwrites the layout properties from the first chart, the data properties are fine:

"react": "18.2.0"
"plotly.js": "^2.33.0"
"react-plotly.js": "^2.6.0"

Image

console.log shows the properties correctly:

Image

teste_chart.configuration.json

Changes the .tsx to .txt to upload the component here:
ChartElement.txt

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.

Research direction

Start by reviewing the attached ChartElement.txt and teste_chart.configuration.json, then reproduce the issue with two charts using the stated React, plotly.js, and react-plotly.js versions. Trace how each chart receives its layout properties and verify that changing the second chart no longer changes the first chart's layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.