【发布时间】:2015-03-05 00:47:13
【问题描述】:
嘿,我正在尝试在 d3.js SVG 元素上使用 Angular UI 工具提示。我正在控制器中生成元素。
context.selectAll("circle")
.data(data)
.enter()
.append("svg:circle")
.attr("tooltip-append-to-body", true)
.attr("tooltip", function(d){
return d.name;
})
代码中的元素和工具提示属性显示正确,但没有出现工具提示。
当我在 HTML 中添加工具提示时,它可以正常工作。
【问题讨论】:
标签: javascript angularjs svg d3.js angular-ui