简体   繁体   English

如何自定义d3plus大型工具提示

[英]How to customize d3plus large tooltip

I am making a visualisation with d3plus.here is my fiddle. 我正在用d3plus进行可视化。这是我的小提琴。 http://jsfiddle.net/kasimsert/wLvpph35/11/ I want to make some basic custom processing over elements like tooltips, rectangles etc.However I could not find a way to do it with d3 selectors.As far as I see problem is when selector function works this elements are not there. http://jsfiddle.net/kasimsert/wLvpph35/11/我想对诸如工具提示,矩形等元素进行一些基本的自定义处理,但是我找不到使用d3选择器进行处理的方法。是当选择器功能起作用时,此元素不存在。 For this I have added onLoad function to html body but no change. 为此,我将onLoad函数添加到html主体中,但没有任何更改。 My question is when in the code flow I should call such code blocks in order to take effect? 我的问题是,何时应在代码流中调用此类代码块才能生效?

d3.select(".d3plus_tooltip_container")
    .style("background-color", 'red');
...
.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
})

Check documentation here . 在此处检查文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM