Я использую «Force Directed Tree» амхартов. Согласно документации:
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
Я хочу, чтобы все узлы верхнего уровня были легендами независимо от того, сколько у них детей. Я не могу найти никакой опции для этого в документации.