美文网首页
Nest Tutorial and examples

Nest Tutorial and examples

作者: 别翘二郎腿 | 来源:发表于2016-04-13 19:22 被阅读0次

    参考网址以及API

    d3.nest- 分层地分组数组元素。

    nest.entries- 返回一组键-值元组

    nest.key- 在嵌套层级中添加一个级别。

    nest.map- 返回一个关联数组。

    nest.rollup- 为叶子值指定一个汇总函数。

    nest.sortKeys- 按照键排序叶子嵌套级别。

    nest.sortValues- 按照值排序叶子嵌套级别。

    Examples


    data.csv

    Symbol,Price,Date,Time,Change,Volume

    "AA",39.48,"6/11/2007","9:36am",-0.18,181800

    "AIG",71.38,"6/11/2007","9:36am",-0.15,195500

    "CAT",62.58,"6/11/2007","9:36am",-0.46,935000

    "AA",98.31,"6/11/2007","9:36am",+0.12,104800

    "CAT",53.08,"6/11/2007","9:36am",-0.25,360900

    "CAT",78.29,"6/11/2007","9:36am",-0.23,225400

    Simple one level nest


    相关文章

      网友评论

          本文标题:Nest Tutorial and examples

          本文链接:https://www.haomeiwen.com/subject/byfglttx.html