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

Chrome 48 - After Mermaid / Dagre update #2734

Closed
cooljig89 opened this issue Feb 11, 2016 · 1 comment
Closed

Chrome 48 - After Mermaid / Dagre update #2734

cooljig89 opened this issue Feb 11, 2016 · 1 comment

Comments

@cooljig89
Copy link

Hi,

I am using d3, to render graph. Data is passed through mermaid.
They recently fixed the issue due to chrome 48
mermaid-js/mermaid#281 so as Dagre.

updating mermaid page, resolved the issue in 1st place, but have introduced an error in d3. I downloaded the new d3, but still the issue persist.

From Firefox :
TypeError: e is null

...de();return n=ta.ns.qualify(n),n.local?e.getAttributeNS(n.space,n.local):e.getAt...

From Chrome :

Error: Invalid value for attribute viewBox="0 0 -Infinity -Infinity"u @ d3-3.5.5.min.js:1
d3-3.5.5.min.js:3 Uncaught TypeError: Cannot read property 'getAttribute' of null

Any help/guidance would be appreciated.

@mbostock
Copy link
Member

Sorry, but this sounds like a bug in your code—perhaps you’re trying to access an attribute value on empty selection? For example, this reproduces your error:

d3.selectAll(".does-not-exist").attr("href");

The viewBox error is different, but it’s probably a bug in how you set the value. :)

Please use Stack Overflow tag d3.js or the d3-js Google group to ask for help, and I recommend making a minimal demonstration of the issue so that people can help you investigate. It’s nearly impossible to investigate without seeing the code. And, I’m afraid I don’t have time to that investigation for you! Good luck.

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

No branches or pull requests

2 participants