!!!###!!!title=Another Data Format for Sankey Charts——VisActor/VChart demo!!!###!!!!!!###!!!description=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 to`Basic Sankey Chart`Example. - 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 to`Hierarchical Sankey Chart`Example.!!!###!!!

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 asnodes: [{values: xxx, name: xx, children: [{values: xxx, name: xx}, {values: xxx, name: xx}]}], corresponding toHierarchical Sankey ChartExample.

PX
x
PX
%
Agent Editor
Share