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

Update make_trace_groups.js #6160

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

DoctorNo124
Copy link

When using d3 in conjunction with plotly, d3 seems to be clearing out the data property. This is making the function wrapped in the data function call here throw an exception since cd[0] is undefined. By setting the data to cdModule before this function call, we avoid the exception and fix d3's compatibility with plotly.

Thanks,
Noah

Adding .data(cdModule) to make function in next .data not throw a null exception
@archmoj
Copy link
Contributor

archmoj commented May 6, 2022

When using d3 in conjunction with plotly, d3 seems to be clearing out the data property. This is making the function wrapped in the data function call here throw an exception since cd[0] is undefined. By setting the data to cdModule before this function call, we avoid the exception and fix d3's compatibility with plotly.

Which version of d3 are you using?
Could you please replicate the problem by forking this codepen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants