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

selection.node() always returns null #7

Open
akarasev opened this issue Mar 12, 2016 · 4 comments
Open

selection.node() always returns null #7

akarasev opened this issue Mar 12, 2016 · 4 comments

Comments

@akarasev
Copy link

Using:

"fr.iscpif" %%% "scaladget" % "0.7.0"

I want to obtain a DOM element as a result of D3 selection. For example,

d3.select("body").node()

but the result is always null. However, I'd like to get HTMLBodyElement for that example.

@mathieuleclaire
Copy link
Collaborator

@akarasev
Copy link
Author

Ok, I can. But try to get a node svg.node() and you will get a null

@mathieuleclaire
Copy link
Collaborator

I don't know D3 a lot, but it does not seem to be a proper way to use it. If you just want to get the body node, why not use scalajs-dom instead and invoke dom.document.body ?

@akarasev
Copy link
Author

I don't want to get document body exactly. It was just an example of incorrect behavior. I am trying to tell you, that a method node() doesn't work properly.

I have to use scaldget in my project, but I compared scaladget with an another D3 facade and that facade works fine.

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

No branches or pull requests

2 participants