plotly / plotly/react-plotly.js

plotly.js 1.57.0/1.56.0 and react-plotly.js 2.5.0 are not said to be incompatible

Open
#210 4 comments 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

This combination of plotly.js and react-plotly.js seems to be unsupported. I might try with other versions in future too. It would be useful to write about this in some file if it is confirmed.

TypeError
Cannot read property 'document' of undefined

Code Sandbox

https://codesandbox.io/s/nervous-elbakyan-x3i8e?file=/src/App.js

Screenshot

image

Updates

plotly.js 1.56.0 has a similar error:
image

Thank you.

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 reproducing the reported error using the linked CodeSandbox with plotly.js 1.57.0 or 1.56.0 and react-plotly.js 2.5.0. Compare compatible version combinations and confirm whether the incompatibility is reproducible; done means documenting the confirmed limitation and affected versions in the appropriate project guidance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
data-visualization, frontend
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.