Organizational Chart, Family & Dependencies Diagrams

Supported Diagrams

  • Hierarchy Visualization
  • Organizational Chart
  • Multi-parent hierarchical chart
  • Family Tree
  • Dependencies Diagram
  • PERT chart
  • Financial Ownership Diagram

Pure JavaScript

  • 100% client side JavaScript layout and rendering.
  • Implemented in pure JavaScript without dependency on 3d party libraries.
  • Works in all major modern browsers Internet Explorer, Edge, Chrome, Firefox, Safari and mobile browsers. Supports graphics rendering in SVG and Canvas modes depending on user options.

PDF support

  • 100% JavaScript in-browser or NodeJS PDF rendering based PDFkit (MIT) library.

Free for Non-commercial

Do you want to use Basic Primitives Diagram for a personal website, a school site or a non-profit organization? Then you don't need the author's permission, just go on and use Basic Primitives Diagram. For commercial websites and projects, see License and Pricing.


One of the key features of Basic Primitives Diagram that under any of the licenses, free or not, you are allowed to download the source code and make your own edits. This allows personal modifications and a great flexibility. The comprehensive set of samples, demos and unit tests guarantees quality of the library's source code.

Facilitates visual data analytics of hierarchical and topological dependencies

Business Intelligence systems and applications are designed for two major areas: Reporting and Analytics. Reporting applications are meant to be a legal statements, so reported data should be 100% complete, it should not have any discrepancy in form of omitted data, improperly rounded values or excessive abbreviations. On the other side, applications designed for data analytics should show only the most valuable and related data to current user focus and gracefully degrade details for less relevant data. So control provide API options for visual data analysis of diagrams:

Auto layout

The main problem of diagrams drawn in graphics editor is in sparse distribution of items on layout. Large gaps between nodes make chart hard to overview, edit and navigate. Sometimes the chart is so big that it could have screen size intervals between items. This issue makes the whole idea of visualizing diagrams useless. At the same time computer UI allows to scale and fit visualization into screen, but in that case items become small and unreadable. The primary goal of our approach to Organizational chart and other diagrams visualization is to resolve these issues and make good use of them at the same time. The widget finds the best way to display a large hierarchy within available screen space without scrolling or with minimal scrolling not affecting usability.

Diagram shape overview
Widget minimizes items in order to fit diagram visualization into available screen space and provides user with possibility to overview general diagram layout.
User focus navigation goes node by node
Chart displays cursor item and its neighbors full size and minimizes all other less relevant nodes. By clicking on neighboring nodes user will move the focus of interest to the newly selected part of the diagram.
Pinning of items in diagram
All selected/check marked items are always displayed full size, all other items stay minimized, so it allows to pin/select items in different branches and show them side by side within available screen space for location comparison.
Diagram design consistency
Auto layout without user's manual editing provides visual consistency across all diagramming documents. All users have various skills and preferences, so auto layout provides consistent diagrams visualization.
Always up to date
Your application diagrams will not be affected by changes in Widget's layout algorithms and application data. Your visualizations will be always up to date and in sync with your data.
Context annotations
Every time we make changes to diagram we need to visualize performed modification otherwise it is hard to trace changes before and after modification. So in order to visualize diagram transition from one state to another control provides annotations. Annotations are API elements attached to diagram nodes and are drawn in front or in the background of them. Annotations don't change nodes placement, so controls redraw them instantaneously without diagram layout. The general logic of annotations is that they are not supposed to be displayed for every node in diagram, application is supposed to create them and add to diagram in the context of current user cursor or operation, user perform with data. Annotations compared to diagram layout itself have minimal conflict resolution abilities. So it is very easy to clutter diagram with excessive number of annotations. But they come very handy when we need to add context specific visuals.

Provides simple API for the most common use cases

Default item template
Controls provide built-in item template and render diagrams with minimal options defined. Define items collection and run.
Items selection check boxes
Diagrams provide nodes selection API similar to regular tree control available in every UI framework. So it can replace existing tree control in your application UI and provide extra usability enhancements not achivable with standard UI components.
User buttons panel
Modern UI keeps context buttons as close to its target as possible, we may see this UI design pattern everywhere, it is easy to implement with HTML containers. Basic Primitives layout engine works with fixed size nodes, and hardcoded intervals between rows and nodes, so in order to achive the same UI concept control's API supports template options preserving extra space around cursor node in diagram and places context action buttons inside of it.
Vertical node titles
Another out of the box optional decoration in form of rotated 90 degree text box on the side of node.
Chart scales diagram from full sized HTML nodes down to simple markers with labels. Markers and labels are the most simple form of node template, specially optimized for fast rendering.

Flexible API for more complex use cases

  • Customizable item, highlight and cursor content templates
  • Custom layout parent/child relation types: Adviser, Assistant and various partners. Multiple parents, multiple managers or co-heads visualization.
  • Custom children and leaves layout: Vertical, Horizontal and Matrix
  • Left/Right layout alignment support.
  • Events


  • Works in AngularJS and ReactJS
  • Works in jQuery UI widgets.
  • Supports customization of diagram nodes with nested components using various frameworks and templates


  • Through a full API you can add, remove and modify individual items and their properties at any other time after organizational chart rendering. Widget update time is as fast as its navigation.
This is an info bar This came from the api serverMon Jun 24 2019 15:36:53 GMT+0000 (UTC)
Have questions? Ask for help on Github.