Skip to content

Org Chart Viewer ​

An interactive organization chart with search, expand/collapse and PNG export, powered by the d3-org-chart library. Ships with a small demo dataset so it works out of the box, or pass your own hierarchy via the records attribute.

Available in: App Page · Home Page · Record Page

org-chart-viewer

Attributes ​

NameTypeDefaultDescription
recordsArray[]Flat list of records to render as a tree. Each record needs an id (or Id) and a parentId (or ManagerId), plus a name and title.

Usage ​

html
<c-org-chart-viewer records={employees} onnodeselect={handleNodeSelect}></c-org-chart-viewer>

Events ​

NameDetailDescription
nodeselect{ record } - the record of the clicked nodeFired whenever a node in the chart is clicked, so a parent component can react to the selection.

Component Dependencies ​

NameTypeDescription
d3orgchartStatic Resourced3 v7 + d3-flextree + d3-org-chart - Libraries for rendering interactive organization charts.

Released under the MIT License.