Another Data Format for Sankey Charts
Name
Sankey Chart
Target
Composition
Distribution
Relationship
Comparison
Shape
Flow
mobile
The data of the Sankey diagram supports three forms:
- Dictionary form of node data and edge data, eg
{nodes: [{nodeName: "xxx"}, {nodeName: "xxx"}], links: [{ source: 0, target: 1, value: xxx }]}, corresponding toBasic Sankey ChartExample. - An array of node data and json data of edge data, for example
[{id: 'nodes',values: [{nodeName: "xxx"}, {nodeName: "xxx"}]}, {id: 'links',values: [{ source: 0, target: 1, value: xxx }]}], corresponding to this example. - Hierarchical data formats, such as
nodes: [{values: xxx, name: xx, children: [{values: xxx, name: xx}, {values: xxx, name: xx}]}], corresponding toHierarchical Sankey ChartExample.
2.0.19
Light Theme