【问题标题】:change color of the text on the indented tree - d3.js更改缩进树上文本的颜色 - d3.js
【发布时间】:2018-11-28 13:43:37
【问题描述】:

我想更改每个缩进树上的文本颜色,我已经尝试添加类似这样的内容:

style="color: white"

但这不起作用,我该怎么做呢?谢谢各位

识别树的代码和预览链接:https://bl.ocks.org/mbostock/1093025

【问题讨论】:

    标签: javascript html css d3.js


    【解决方案1】:

    试试这个

    .style('fill', 'darkOrange')
    

    【讨论】:

      猜你喜欢
      • 2016-07-06
      • 2023-03-12
      • 1970-01-01
      • 1970-01-01
      • 2016-08-08
      • 1970-01-01
      • 2017-03-02
      • 1970-01-01
      • 2019-12-18
      相关资源
      最近更新 更多