Create ORG chart C#

An ORG chart is a visual diagram that represents the hierarchy of employees in an organization. It contains their roles, responsibilities, position, etc. and other relevant information. You can create different types of organizational charts with a few API calls without needing to manually draw shapes or connections. This article covers how to create an ORG chart in C#.

ORG Chart Maker – C# API Installation

Aspose.Diagram for .NET API supports working with different kinds of diagrams and charts. Simply access the API by downloading its DLL file from the New Releases section or with the following NuGet installation command:

PM> Install-Package Aspose.Diagram

Create ORG Chart in CompactTree Style in C#

You can create an ORG chart in CompactTree style by following the steps below:

  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 snippet below explains how to create an ORG chart in C#:

The following screenshot shows the output ORG chart created using the above code snippet:

Create ORG chart C#

Create ORG Chart in Flowchart Style in C#

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 C#:

  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 sample code shows how to create an ORG chart in flowchart style in C#:

Get Free Temporary License

You may request a free temporary license to evaluate the API in its full capacity.

Conclusion

In this article, you have understood how to create an ORG chart programmatically in C#. You can create a diagram from a stencil and create CompactTree or Flowchart style chart based on your requirements. Moreover, you may visit the documentation section to take a look at other features covered under different chapters and sections. In case of any inquiries, please feel free to contact us via forum.

See Also

Convert VSDM to PDF in C#