0

我正在用 d3plus 进行可视化。这是我的小提琴。http://jsfiddle.net/kasimsert/wLvpph35/11/ 我想对工具提示、矩形等元素进行一些基本的自定义处理。但是我找不到使用 d3 选择器的方法。据我所知问题is when selector function works this elements are not there. 为此,我在 html 正文中添加了 onLoad 函数,但没有任何变化。我的问题是在代码流中我应该在什么时候调用这样的代码块才能生效?

d3.select(".d3plus_tooltip_container")
    .style("background-color", 'red');
4

1 回答 1

0
...
.tooltip({
    "share":false,
    "html" : "Summary information about the Service, and may be some links to the external applications",
    "font": {size:"auto"},
    "background": "red" // add this
})

在此处查看文档。

于 2015-05-01T19:17:47.853 回答