Create Organizational Chart Java

An Organizational chart is used to explain the reporting or relationship hierarchy in an institute or company. You can make an Organizational chart without needing to install a user interface-based application or tool. This article covers how to create different types of Organizational charts programmatically in Java.

Organizational Chart Maker – Java API Installation

Aspose.Diagram for Java API can be used to create many types of visual diagrams including charts and flowcharts. You can download the JAR file from the Downloads section or using the following Maven specifications in the pom.xml file of your application:


        <name>Aspose Java API</name>



Create Organizational Chart in CompactTree Style in Java

You can create an Organizational chart in CompactTree style with the following steps:

  1. Load masters from any existing diagram, stencil or template.
  2. Define values to construct the hierarchy.
  3. Add shapes and connections between nodes.
  4. Save the output diagram.

The code sample below is a sample of how to create an organizational chart in CompactTree style in Java:

Create Organizational Chart in Flowchart Style in Java

You can design several types of organizational charts that may follow different templates. The following steps show how to create Flowchart style organizational chart programmatically in Java:

  1. Load masters from any existing diagram, stencil or template.
  2. Add organization nodes and connectors.
  3. Set the layout and save output diagram.

The following code snippet demonstrates how to create an organizational chart in flowchart style in Java:

Get Free Temporary License

You may evaluate the API in its full capacity by requesting a free temporary license.


In this article, you have learned how to create an organizational chart programmatically in Java. It covers making a CompactTree or Flowchart style chart depending on your requirements. Moreover, you may visit the documentation section to learn other features of the API. In case you need to discuss your use case or concerns, you may contact us at the forum.

See Also

Convert VSD or VSDX to VTX in Java