Skip to content

d3-selection

选择允许对文档对象模型(DOM)进行强大的数据驱动转换:设置属性样式属性值HTML文本内容,等等。使用数据连接enterexit选择,你还可以添加移除元素以对应数据。

🌐 Selections allow powerful data-driven transformation of the document object model (DOM): set attributes, styles, properties, HTML or text content, and more. Using the data join’s enter and exit selections, you can also add or remove elements to correspond to data.

请参阅以下之一:

🌐 See one of:

更多信息,请参见 Observable 上的 d3-selection 集合

🌐 For more, see the d3-selection collection on Observable.