Organization chart
Bootstrap 5 Organization chart plugin
Responsive family tree chart built with the latest Bootstrap 5. Organize data with a branching visualization.Note: Read the API tab to find all available options and advanced customization
Note: Currently, the plugin is only compatible with the basic MDB package imported in UMD format. More about import MDB formats.
Basic example
Create simple Organization Chart.
Advanced example
Create organization chart including avatar and name.
Mixed example
Create mixed organization chart.
Organization chart - API
Import
Usage
Via JavaScript
Via jQuery
Note: By default, MDB does not include jQuery and you have to add it to the project on your own.
Options
Options can be passed via data JavaScript, or jQuery. Each option can be passed with value or
null
.
Name | Type | Default | Description |
---|---|---|---|
data
|
Object | {} |
Pass data for the structure illustrated on the chart. At every level there should be name . Properties label , avatar and children are optional. |
switchHeaderText |
Boolean | false |
Switch the name with title in node (only for advanced charts). |
Methods
Name | Parameters | Description | Example |
---|---|---|---|
getInstance
|
element | Static method which allows to get the OrganizationChart instance associated with a DOM element. |
OrganizationChart.getInstance(element)
|
dispose
|
element | Disposes OrganizationChart instance. |
instance.dispose()
|