Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 939 Bytes

README.md

File metadata and controls

31 lines (24 loc) · 939 Bytes

Bootstrap 3.0 Org-Chart

This is a work in progress.

This project spawned because I needed an org chart that worked responsively. Since org charts tend to be quite wide, this is a particular challenge.

This code uses JS to create a basic DOM structure from a simple JSON object that describes the organization. CSS pseudo-elements are used to draw the lines between the nodes.

Demo

Demos

Requirements

  • jQuery
  • Bootstrap 3.0

Usage

Quick Start

  • Include orgchart.js and orgchart.css on your site. (or customize the orgchart.scss)
  • Call OrgTree.makeOrgTree(element, data)
  • element must be a jQuery reference to the element you want to contain the chart
  • Data is an object with a label and children
  • More Documentation

To-dos

  • Wide and narrow examples
  • Unit tests