Skip to content

d3-selection

选择允许对文档对象模型 (DOM) 进行强大的数据驱动转换:设置 attributesstylespropertiesHTMLtext 内容,等等。使用 数据连接enterexit 选择,你还可以使用 addremove 元素来对应数据。

¥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.