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'...
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-viig
8 years agoCommunity Champion
Yes, that's correct.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals