Create ORG Chart Java

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

ORG 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:

Repository:

 <repositories>
    <repository>
        <id>AsposeJavaAPI</id>
        <name>Aspose Java API</name>
        <url>http://repository.aspose.com/repo/</url>
    </repository>
</repositories>

Dependency:

 <dependencies>
    <dependency>
        <groupId>com.aspose</groupId>
        <artifactId>aspose-diagram</artifactId>
        <version>22.8</version>
        <classifier>jdk16</classifier>
    </dependency>
</dependencies>

Create ORG Chart in CompactTree Style in Java

You can create an ORG 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 following sample code demonstrates how to create an ORG chart in Java:

Create ORG Chart in Flowchart Style in Java

You may need to create different kinds of ORG charts that may follow different templates. Here you will learn how to create an ORG chart in Flowchart style 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 code snippet below explains shows how to create an ORG chart in flowchart style using Java:

Get Free Temporary License

You can test the API without any evaluation limitations by requesting a free temporary license.

Conclusion

In this article, you have learned how to create ORG charts programmatically in Java. It explains creating the CompactTree or Flowchart style chart as per your needs. Furthermore, you can take a look at various other features by going through the documentation space. Please feel free to write to us at the forum in case you want to discuss any of your requirements or concerns.

See Also

Convert VSD or VSDX to VTX in Java