1.对象(Object)

方法 描述
d3.keys(object) 获得对象的key
d3.values(object) 获得对象的value
d3.entries(object) 获得对象的key和value

2.Map

方法 描述
d3.map([object[, key]]) 创建map,可以将数组传入,然后根据key参数方法指定key
map.has(key) returns true if the map contains the given key.
map.get(key) get the value for the given key.
map.set(key, value) set the value for the given key.
map.remove(key) remove the entry for given key.
map.clear() remove all entries.
map.keys() get the array of keys.
map.values() get the array of values.
map.entries() get the array of entries (key-values objects).
map.each(function) call a function for each entry.
map.empty() returns false if the map has at least one entry.
map.size() compute the number of entries.

3.Sets

方法 描述
d3.set create a new, empty set.
set.has returns true if the set contains the given value.
set.add add the given value.
set.remove remove the given value.
set.clear remove all values.
set.values get the array of values.
set.each call a function for each value.
set.empty returns true if the set has at least one value.
set.size compute the number of values.

4.Nest

方法 描述
d3.nest() create a new nest generator.
nest.key(key) add a level to the nest hierarchy.
nest.sortKeys(comparator) sort the current nest level by key.
nest.sortValues(comparator) sort the leaf nest level by value.
nest.rollup(function) specify a rollup function for leaf values.
nest.map(array) generate the nest, returning a map.
nest.object(array) generate the nest, returning an associative array.
nest.entries(array) generate the nest, returning an array of key-values tuples.

D3 Collection相关推荐

  1. 1897个D3 例子

         1.113th U.S. Congressional Districts 2.The Story of the Season  3.20000 points in random motion ...

  2. 从壹开始微服务 [ DDD ] 之一 ║ D3模式设计初探 与 我的计划书

    缘起 哈喽大家周四好!又是开心的一天,时间过的真快,我们的 <从壹开始 .net core 2.1 + vue 2.5 >前后端分离系列共 34 篇已经完结了,当然以后肯定还会有更新和修改 ...

  3. java 集合 接口_Java集合之Collection接口

    1 - Java集合介绍 /* 1. 一方面, 面向对象语言对事物的体现都是以对象的形式,为了方便对多个对象 的操作,就要对对象进行存储. 2. 另一方面,使用Array存储对象方面具有一些弊 端,而 ...

  4. java中collection方法_Java 8中的Collector toCollection()方法

    toCollection()Java中的Collector类的方法返回一个Collector,该Collector以遇到的顺序将输入元素累积到一个新的Collection中. 语法如下static & ...

  5. java map collection_java 集合----Map、Collection

    接口:红色:实现类:黑色字体 一.Collection集合 Collection |_____Set(HashSet) |      |_____SortedSet(TreeSet) |_____Li ...

  6. D3.js、HTML5、canvas 开发专题

    https://www.smartdraw.com/genogram/ http://www.mamicode.com/info-detail-1163777.html  D3折线图 https:// ...

  7. 【D3】transition API

    摘要: 动画类API 一.API 使用 1. 1 d3.ease 1.2 d3.timer Start a custom animation timer, invoking the specified ...

  8. Java学习总结:53(单对象保存父接口:Collection)

    单对象保存父接口:Collection java.util.Collection是进行单对象保存的最大父接口,即每次利用Collection接口都只能保存一个对象信息.单对象保存父接口定义如下: pu ...

  9. 【java】兴唐第二十节课(Collection 和 ArrayList)

    (一)Collection 1.如果实现 --able 名称的接口则证明该类或其子类有该功能 (1)实现Iterable接口代表具有迭代功能 (2)实现Cloneable接口代表具有克隆功能 (3)实 ...

最新文章

  1. scrolling=no 无法根据坐标获取元素_汽车制造行业如何选择三坐标测量仪?
  2. TensorFlow AI 新品更易用!联手NVIDIA,支持Swift和JavaScript
  3. 登录MOSS站点失败
  4. JDBC-ODBC桥乱码问题解决方案
  5. MVC5 模型 生成EF
  6. 从零开始入门 K8s | 理解容器运行时接口 CRI
  7. spring mysql 注解_【Spring】SpringMVC之基于注解的实现SpringMVC+MySQL
  8. 微信小程序 点击按钮 退出
  9. android studio运行手机时出错怎么解决_小程序 android ios h5解决方案
  10. 用c语言写三个人打鱼问题,用c语言解决三天打鱼,两天晒网的问题要用到什么函数...
  11. 关于pchunter1.57x64过期使用
  12. python用户登录三次机会的注释_用户登录(三次错误机会)(示例代码)
  13. 搭乘云原生与数据中台实践列车 通往数字化转型前沿之旅
  14. json和jsonp的问题
  15. 将表中一整列数据都生成五笔和拼音
  16. 【计算理论】图灵机 ( 图灵机设计 )
  17. Blender学习笔记(3)建模|blender
  18. 解决微信支付、微信一键登陆在安卓10以上无法调起问题
  19. 图像工作回顾之六:视频质量诊断
  20. POJ2228 Naptime 【例题精讲】

热门文章

  1. 必须掌握的Python技巧(三)
  2. Python之数据分析(random模块的正确用法)
  3. 【2】二级C语言中那些易错的概念题
  4. php重度写如何优化,win10玩游戏掉帧严重怎么处理
  5. php字符串分割汉字,php支持中文字符串分割的函数
  6. Python+matplotlib设置y轴标签距离、位置、竖排
  7. Python+matplotlib绘制海螺贝壳上美丽的线条
  8. 微课系列(6):Python关键字else的三种用法
  9. Python版选择排序算法
  10. ai皮肤检测分数_德国猫咪皮肤检测仪,为什么这么火?| 云美来