【问题标题】:How to customize d3plus large tooltip如何自定义 d3plus 大工具提示
【发布时间】:2015-05-02 03:17:47
【问题描述】:

我正在使用 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.为此,我在 html 正文中添加了 onLoad 函数,但没有任何变化。我的问题是在代码流中我应该在什么时候调用这样的代码块才能生效?

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

【问题讨论】:

    标签: javascript d3.js d3plus


    【解决方案1】:
    ...
    .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
    })
    

    查看文档here

    【讨论】:

    • 感谢您的回答。但是,我还需要在大工具提示上绘制线图,据我所知,我只能通过 d3 访问这些元素来做这些事情。你知道怎么做吗?
    • 与您原来的“基本定制处理”相比,这是一个相当大的飞跃。但是这个SO answer 应该会让你继续前进。
    • 我的问题和链接的问题之间的区别是我使用 d3plus 进行绘图。并且在绘制然后使用 d3 选择器之后,没有任何返回。
    猜你喜欢
    • 1970-01-01
    • 2016-02-27
    • 2022-01-06
    • 1970-01-01
    • 2015-09-01
    • 2013-06-23
    • 2011-09-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多