JSPM

  • Created
  • Published
  • Downloads 29576
  • Score
    100M100P100Q158368F
  • License ISC

Organization chart, created with d3

Package Exports

  • d3-org-chart

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (d3-org-chart) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

D3 v5 organization chart

NPM Version

Org chart built with d3 v5

Examples

Observable example (Most Updated)
Jsfiddle example
Codepen example

Installing

npm i d3-org-chart

Usage

const TreeChart = require ('https://bundle.run/d3-org-chart@1.0.4');


new TreeChart()
   .container(container)
   .data(data)
   .svgWidth(width)
   .initialZoom(0.4)
   .onNodeClick(d=> console.log(d+' node clicked'))
   .render()
 

See usage example - https://observablehq.com/@bumbeishvili/tree-chart-npm-demo

Authors

David B