g6/packages/site/examples/net/gridLayout/index.en.md
2023-08-29 15:19:51 +08:00

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.