In the demo this code works
.attr("viewBox", "0 0 960 500")
.attr("preserveAspectRatio", "xMinYMin meet")
.attr("width", width + margin.left + margin.right)
.attr("height", height + margin.top + margin.bottom);
var svgElement = d3.select(parent).insert("svg",function() {return
nextSibling;})
In latest d3.js this code gives ownerDocument is undefined. It is given
inside d3.js in function W(t). Arg "parent" does not have such field as
ownerDocument but it is needed
среда, 2 января 2019 г., 0:23:35 UTC+3 пользователь BurningTreeC написал:
>
> If you cannot access the parentDomNode, then it may be that on top of your
> render function "this.parentDomNode = parent;" is missing
>
> ... ?
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/034cd341-5681-4c7b-b061-83c0e894095c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.