@nicolai8/d3-org-chart
TypeScript icon, indicating that this package has built-in type declarations

3.2.6 • Public • Published

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

/@nicolai8/d3-org-chart/

    Package Sidebar

    Install

    npm i @nicolai8/d3-org-chart

    Weekly Downloads

    31

    Version

    3.2.6

    License

    MIT

    Unpacked Size

    366 kB

    Total Files

    72

    Last publish

    Collaborators

    • nicolai8