在SVG元素上使用ng-bootstrap的工具提示未显示

时间:2018-07-24 17:31:25

标签: d3.js bootstrap-4 ng-bootstrap

我使用D3.js创建了圈子。我使用ng-bootstrap作为工具提示,但未在svg元素上显示

g.append("g").selectAll("circle").data(this.RecordDaily).enter().append("circle")
                               .attr("r", 5).attr("fill", "purple")
                               .attr("cx", function (d) { return x(parseTime(d.moy)); })
                               .attr("cy", function (d, i) { return y(d.session); })
                               .attr("data-toggle", "tooltip").attr("title", function (d) { return d.session })
                               .attr("ngbTooltip",  function (d) { return d.session })
                               .attr("placement",  "top")

0 个答案:

没有答案
相关问题