mirror of
https://gitee.com/antv/g6.git
synced 2024-12-15 18:11:08 +08:00
3534d4669b
* docs: adjust docs of data * docs: update api docs
863 B
863 B
title | order |
---|---|
GraphData | 1 |
Graph data (GraphData) is one of the data types received by Graph, which contains a collection of nodes, edges, and combos.
An example of a graph data is as follows:
{
"nodes": [
{ "id": "node-1", "data": { "parentId": "combo-1" } },
{ "id": "node-2", "data": { "parentId": "combo-1" } }
],
"edges": [{ "id": "edge-1", "source": "node-1", "target": "node-2" }],
"combos": [{ "id": "combo-1", "data": {} }]
}
Properties
nodes Required
Type: NodeUserModel[]
Nodes collection
edges Required
Type: EdgeUserModel
Edges collection
combos
Type: ComboUserModel
Combos collection