JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 54
  • Score
    100M100P100Q57954F
  • License MIT

Highly customizable org chart, created with d3

Package Exports

  • @nicolai8/d3-org-chart
  • @nicolai8/d3-org-chart/dist/index.js

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 (@nicolai8/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

Highly customizable d3 based organization chart

Rewritten to TS and enhanced version of original https://github.com/bumbeishvili/org-chart

Added:

  • drag and drop
  • new methods and properties:
    • addNodes(nodes) - add multiple nodes, useful when you'd like to add subtree under existing node
    • onDataChange - callback to get noticed that there are some changed made to original chart, triggered on add/remove/drag nodes
    • getData
    • setParentNodeId(node, newId)
    • zoom(scale) - set specific scale to chart
    • d3Instance - exports imported d3 plugins. Useful when you don't want to directly reference d3 in your package.json
  • typings