mirror of
https://gitee.com/antv/g6.git
synced 2024-12-15 10:01:09 +08:00
14 lines
672 B
Markdown
14 lines
672 B
Markdown
---
|
|
title: Grid
|
|
order: 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](/en/docs/manual/middle/layout/sub-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`.
|