简体   繁体   中英

What is “size” in flare json — used in D3 examples?

My colleague and I are working with a D3 visualization. Specifically we are starting with this example . This visualization appears to use some kind of json related to the flare API

In the sample json, there's lines like:

 "name": "cluster",
 "children": [
  {"name": "AgglomerativeCluster", "size": 3938},
  {"name": "CommunityStructure", "size": 3812},
  {"name": "HierarchicalCluster", "size": 6714},
  {"name": "MergeEdge", "size": 743}

I understand that stuff after "name" relates to a Flare class. What I can't seem to find, despite lots of googling, is what exactly "size" is and what its units are? More generally, where can one find some kind of specification on flare's json format and what it means?

It is not used by the node-link tree layout example that you are referring to. The size is used in other examples like treemap, bubble layout, circle packing, bubble layout, icicle, sunburst, etc. You will see the impact of size using the flare.json file with those examples.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM