I am trying by example demo d3. But latest version not working. It need docomentOwner property to be availabel by parentnode, But tw5 does not provide it to widget render function.
| .attr("viewBox", "0 0 960 500") |
| .attr("preserveAspectRatio", "xMinYMin meet") |
| .attr("width", width + margin.left + margin.right) |
| 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 |
In the demo this code works
.attr("viewBox", "0 0 960 500")
.attr("preserveAspectRatio", "xMinYMin meet") .attr("height", height + margin.top + margin.bottom);
.attr("width", width + margin.left + margin.right)
var svgElement = d3.select(parent).insert("svg",function() {return nextSibling;})