How do I use angularjs directives in generated d3 html?
Posted
by
zlog
on Stack Overflow
See other posts from Stack Overflow
or by zlog
Published on 2013-12-05T11:53:48Z
Indexed on
2014/06/06
3:25 UTC
Read the original article
Hit count: 128
I'm trying to use the angularjs tooltip directive on my d3 visualisation, so I have something like
var node = svg.selectAll(".node")
.data(nodes)
.enter().append("circle")
.attr("tooltip-append-to-body", true)
.attr("tooltip", function(d) {
return d.name;
})
// ... attributes
However, the tooltips are not showing. Do I need to $compile
or something? I've tried wrapping it around $timeout
too, but that didn't work.
© Stack Overflow or respective owner