选择
- d3.event - 访问用于交互的当前用户事件。
- d3.mouse - 获取相对于指定容器的鼠标位置。
- d3.select - 从当前文档中选择一个元素。
- d3.selectAll - 从当前文档中选择多个元素。
- d3.selection - 增强选择器原型,或测试实例类型。
- d3.touch - 获取相对于指定容器的单点触摸位置。
- d3.touches - 获取相对于指定容器的多点触摸位置。
- selection.append - 创建并追加一个新元素。
- selection.attr - 取得或设置属性的值。
- selection.call - 为当前选择调用一个函数。
- selection.classed - 添加或移除CSS类。
- selection.data - 在计算相关的连接时,取得或设置一组元素的数据。
- selection.datum - 取得或设置单个元素的数据,不必计算连接。
- selection.each - 为每个选中的元素调用一个函数。
- selection.empty - 如果选择是空则返回true。
- selection.enter - 为缺失的元素返回占位符。
- selection.exit - 返回不再需要的元素。
- selection.filter - 基于数据过滤选择。
- selection.html - 取得或设置innerHTML内容。
- selection.insert - 在已存在元素之前创建并插入一个元素。
- selection.interrupt - 如果有过渡的话,立即中断当前的过渡。
- selection.node - 返回选择中的第一个节点。
- selection.on - 为交互添加或移除事件监听器。
- selection.order - 重排列文档中的元素,以匹配选择。
- selection.property - 取得或设置行内属性。
- selection.remove - 从当前文档中移除当前元素。
- selection.select - 为每个选中元素的在选择一个后代元素。
- selection.selectAll - 为每个选中元素的在选择多个后代元素。
- selection.size - 返回选择中的元素数。
- selection.sort - 基于数据排列文档中的元素。
- selection.style - 取得或设置样式属性。
- selection.text - 取得或设置文本内容。
- selection.transition - 在选中元素上开启过渡。