Forum Discussion
ysapiyev
8 years agoResponsive Resident
Trouble with adding checkbox
Hi everyone, I wanted to add checkbox and tried this code: svg.selectAll("foreignObject")
.data(nodes)
.enter().append("foreignObject")
.attr('x' , o.x)
.attr('y'...
v-viig
8 years agoCommunity Champion
You should add a div container to the root element.
After that you should include input element and svg element into this div container.
SVG element supports the only SVG elements.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
ysapiyev
8 years agoResponsive Resident
So it will look like that?
let check= d3.select('body')
.append('div')
.append('input')
.type('checkbox')
let svg = d3.select(div)
.append('svg')
- v-viig8 years agoCommunity Champion
Yes, that's correct.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals