Create Organizational chart csharp.png C#

An Organizational chart is used to depict the structure of a business, government or an organization. They can be disgned for different reasons like making a policy or planning purposes. You may create different type of organizational charts by making different shapes and connectors. This article covers how to create an Organizational chart in C#.

Organizational Chart Maker – C# API Installation

Aspose.Diagram for .NET API can be used to create different Visio diagrams and charts. You can easily configure the API by downloading its reference file from the New Releases page or using the following NuGet installation command:

PM> Install-Package Aspose.Diagram

Create Organizational Chart in CompactTree Style in C#

You can create an organizational 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 Organizational chart in C#:

The following screenshot shows the output organizational chart generated with the code snippet above:

Create Organizational chart C#

Create Organizational Chart in Flowchart Style in C#

You may need to create different kind of organizational charts that may follow different templates. Here you will learn how to create Organizational 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 Organizational 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 Organizational chart programmatically in C#. You can create a diagram from 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 the forum.

See Also

Convert VSDM to PDF in C#