OrganizationChart visualizes hierarchical organization data.
OrganizationChart requires a collection of TreeNode instances as a value.
OrganizationChart requires a collection of TreeNode instances as a value.
Nodes can be expanded and collapsed when collapsible is enabled.
Nodes can be selected by defining selectionMode along with a value binding with selection properties. By default only one node can be selected, set selectionMode as multiple to select more than one.
Collapsible and selectable behaviors can be controlled at the node level using the collapsible and selectable properties of a TreeNode.
Nodes can define collapsedByDefault and selectedByDefault properties to configure the initial state.
Styling a specific node is configured with styleClass option of a TreeNode and custom templates.
Custom content instead of a node label is defined using the #node template reference.







Component uses ARIA roles and attributes for screen reader accessibility. The root element has role="tree" with aria-multiselectable for multiple selection support. Each tree item uses role="treeitem" with aria-level for hierarchy, aria-expanded for collapse state, and aria-selected for selection state. Child nodes are grouped with role="group".
| Key | Function |
|---|---|
| tab | Moves focus through the focusable nodes within the chart. |
| enter | Toggles the selection state of a node. |
| space | Toggles the selection state of a node. |
| Key | Function |
|---|---|
| tab | Moves focus through the focusable elements within the chart. |
| enter | Toggles the expanded state of a node. |
| space | Toggles the expanded state of a node. |