Directory

← Back

OrgChart Add-on

Organizational Chart Addon

Author

Contributors

Rating

Popularity

300+

This add-on allows you to create organizational charts that can show different hierarchies based on the provided data.

This add-on is based on the JQuery version of the component that you can find here: https://github.com/dabeng/OrgChart.

Supported library features: data (json), pan, zoom, zoominLimit, zoomoutLimit, direction, verticalDepth, depth, toggleSiblingsResp, nodeTitle, nodeContent, exportButton, exportFilename, exportFileextension (png & pdf), Enable/disable exapand/collapse feature and add a chart title.

Found a bug or have a suggestion? Report it on GitHub

For bug reports, feature suggestions, or questions, please open an issue on GitHub. This makes it easier for us to track and respond efficiently, ensuring you get the best possible support. Your input helps us improve—thank you!

Sample code

OrgChartItem item1 = new OrgChartItem(1, "John Williams", "Director");
OrgChartItem item2 = new OrgChartItem(2, "Anna Thompson", "Administration");
OrgChartItem item3 = new OrgChartItem(3, "Timothy Jones", "Sub-Director");        
item1.setChildren(Arrays.asList(item2, item3));        
OrgChartItem item4 = new OrgChartItem(4, "Louise Night", "Department 1");
OrgChartItem item5 = new OrgChartItem(5, "John Porter", "Department 2");
item2.setChildren(Arrays.asList(item4, item5));       
OrgChartItem item6 = new OrgChartItem(6, "Charles Thomas", "Department 3");	
item5.setChildren(Arrays.asList(item6));        
OrgChart component2 = new OrgChart(item1);
component2.setChartTitle("My Organization Chart Demo - Example 2 - BOTTOM TO TOP DIRECTION");    
component2.setChartNodeContent("title");
component2.setChartDirection(ChartDirectionEnum.BOTTOM_TO_TOP.getAbreviation());
component2.initializeChart();
OrgChart component1 = getExample1();        
component1.setChartTitle("My Organization Chart Demo - Example 1 - CHART EXPORT AS PICTURE");    
component1.setChartNodeContent("title");
component1.setChartExportButton(true);
component1.setChartExpandCollapse(true);
OrgChart component1 = getExample1();
String nodeTemplate = "<div class='title'>${item.title}</div>"+
        		"<div class='middle content'>${item.name}</div>" +
        		"${item.data.mail?`<div class='custom content'>${item.data.mail}</div>`:''}";
		component1.setNodeTemplate("item", TemplateLiteralRewriter.rewriteFunction(nodeTemplate));

...

public OrgChart getExample1() {
    	OrgChartItem item1 = new OrgChartItem(1, "John Williams", "Director");
    	item1.setData("mail", "jwilliams@example.com");
    	item1.setClassName("blue-node");
        OrgChartItem item2 = new OrgChartItem(2, "Anna Thompson", "Administration");
        item2.setData("mail", "athomp@example.com");
        item2.setClassName("blue-node");
        ...

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

New features:

  • update orgchart library dependency to 3.7.0 (#66)
Released
2023-08-16
Maturity
TESTED
License
Apache License 2.0

Compatibility

Framework
Vaadin 14
Vaadin 23
Vaadin 24
Vaadin 22 in 4.2.1
Vaadin 21 in 4.2.1
Vaadin 20 in 4.2.1
Vaadin 19 in 4.2.1
Vaadin 18 in 4.2.1
Vaadin 17 in 4.2.1
Vaadin 16 in 4.2.1
Vaadin 15 in 4.2.1
Vaadin 7.7+ in 1.0.0
Vaadin 8.0+ in 2.0.4
Browser
N/A

Carousel Addon - Vaadin Add-on Directory

Add-on that renders a carousel component Carousel Addon - Vaadin Add-on Directory
This is a carousel add-on, based on the [@xpertsea/paper-slider webcomponent](https://www.npmjs.com/package/@xpertsea/paper-slider) #### Found a bug or have a suggestion? Report it on GitHub For bug reports, feature suggestions, or questions, please open an issue on [GitHub](https://github.com/FlowingCode/CarouselAddon/issues). This makes it easier for us to track and respond efficiently, ensuring you get the best possible support. Your input helps us improve—thank you!
Online Demo
Source Code
Issue Tracker
Author Homepage
Carousel Addon API

Carousel Addon version 1.0.0
Initial release.

Carousel Addon version 2.0.0
Release with support for Vaadin 14+ NPM mode

Carousel Addon version 2.0.1
### Maintenance release. * Replace vaadin dependency with vaadin-core

Carousel Addon version 2.1.0
## New feature * Add position value (index of the slide element) to SlideChangeEvent ([#10](https://github.com/FlowingCode/CarouselAddon/issues/10))

Carousel Addon version 2.1.1
### Bugfixes * Fix position not set in SlideChangeEvent constructor ([#15](https://github.com/FlowingCode/CarouselAddon/issues/15)) * Fix fromClient not used in SlideChangeEvent constructor ([#17](https://github.com/FlowingCode/CarouselAddon/issues/17))

Carousel Addon version 2.1.2
#### Bug fixes: * Correct height handling * Change how properties are handled ([#29](https://github.com/FlowingCode/CarouselAddon/issues/29), [#31](https://github.com/FlowingCode/CarouselAddon/issues/31))

Carousel Addon version 2.1.3
#### Bug fixes: * Make withoutNavigation method hide navigation circles as expected ([#36](https://github.com/FlowingCode/CarouselAddon/issues/36)) * Use setProperty instead of setAttribute ([#38](https://github.com/FlowingCode/CarouselAddon/issues/38))

Carousel Addon version 2.1.4
#### Bug fixes: * Refactor to add paper-slider sources to component * Add detach logic ([#21](https://github.com/FlowingCode/CarouselAddon/issues/21)) * Remove redundant call to updateSlides

Carousel Addon version 3.0.0
#### New features: * BREAKING CHANGE: the web-component is now called fc-l2t-paper-slider * Add support for shadow DOM styling ([#41](https://github.com/FlowingCode/CarouselAddon/issues/41))

Online