mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 19:58:46 +08:00
672 B
672 B
title | order |
---|---|
Grid | 11 |
Grid Layout will order the nodes according to the parameters, and then place the nodes on the grids.
Usage
As the demo below, you can deploy it in layout
while instantiating Graph. it can also be used for Subgraph Layout. By tuning the parameters, you can adjust the iteration number, compact degree, layout buy cluster, and so on. By tuning the parameters, you can adjust the ordering method, rows, cols, prevent node overlappings, and so on.
- Example 1 : Basic Grid Layout, the nodes are ordered according to the data.
- Example 2 : Order the nodes according to the property
cluster
.