← 返回首页
javascript/samples/MatrixLayoutInFamilyChart.md at master · BasicPrimitives/javascript · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Latest commit

 

History

History
14 lines (8 loc) · 1.14 KB
 master
Top

File metadata and controls

  • Preview
  • Code
  • Blame
14 lines (8 loc) · 1.14 KB

Matrix layout in family chart

The option enableMatrixLayout enables automatic matrix layout for nodes sharing the same set of parents and children in the diagram. The matrix forms a square shape. If the matrix outgrows the screen width, it makes diagram navigation complicated. The maximumColumnsInMatrix option limits the maximum number of columns and forces the matrix to grow vertically instead of horizontally. The option minimumMatrixSize sets the minimum number of nodes needed to be shaped into matrix formation.

JavaScript

Grouping nodes into multiple matrixes

The family diagram provides options to control grouping nodes into matrixes per node. The option addToMatrix lets you explicitly prohibit adding nodes into any group of matrixed nodes. And the matrixId option allows you to group nodes into multiple matrixes.

JavaScript

Footer

© 2026 GitHub, Inc.