我正在使用弹药的“强制定向树”。根据文档:
Legend's behavior follows logic similar to color assignment. It contains items for the first level that has more than one node.
So, for example, if we have one top-level node and three its children, those three will comprise the legend.
If we have several nodes on top level, then those will be used as legend items instead.
https://www.amcharts.com/docs/v4/chart-types/force-directed/#Legend
我希望所有顶级节点都作为图例,而不管其具有多少个子节点。我在文档中找不到任何选择。