mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 21:28:33 +08:00
698 B
698 B
title | order |
---|---|
Grid | 5 |
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
.