Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Since 2.17.0, window.d3 is exported with internal 3.8.0 version preventing loading of external d3 library #6483

Closed
lucasnetau opened this issue Feb 15, 2023 · 2 comments · Fixed by #6487
Labels
bug something broken regression this used to work

Comments

@lucasnetau
Copy link

Versions 2.17.0 to 2.18.1 (since change to webpack), window.d3 is defined to the Plotly packaged D3 3.8.0 version. This prevents loading a newer version of D3.

A newer version is needed since Plotly 2.0.0 to access d3.csv/json and also d3 colours (eg d3.schemeCategory10)

Workaround is to set window.d3 = undefined after loading Plotly.js and then including external D3

@archmoj archmoj added bug something broken regression this used to work labels Feb 15, 2023
@archmoj
Copy link
Contributor

archmoj commented Feb 15, 2023

Thanks for the report.

@archmoj
Copy link
Contributor

archmoj commented Feb 15, 2023

Among all the keys on window, d3 is the only module somehow exported!
This suggests we should fix the problem at @plotly/d3 level.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken regression this used to work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants