@thewillhuang/react-org-chart
Simple, high-performance react component for d3 org chart
Last updated 3 months ago by thewillhuang .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @thewillhuang/react-org-chart 
SYNC missed versions from official npm registry.

react-org-chart

Features

  • High-performance D3-based SVG rendering
  • Lazy-load children with a custom function
  • Handle up to 1 million collapsed nodes and 5,000 expanded nodes

React Props

property type description example
tree Object Nested data model with all of the employees in the company (Required) { "id": 123, "person": { "name": "Fouad Matin" }, "children": [] }
nodeWidth Number Width of the component for each individual (Optional) 180
nodeHeight Number Height of the component for each individual (Optional) 100
nodeSpacing Number Spacing between each of the nodes in the chart (Optional) 12
animationDuration Number Duration of the animations in milliseconds (Optional) 350
lineType String Type of line that connects the nodes to each other (Optional) “angle” “curve”

Current Tags

  • 1.0.4                                ...           latest (3 months ago)

14 Versions

  • 1.0.4                                ...           3 months ago
  • 1.0.3                                ...           3 months ago
  • 1.0.2                                ...           3 months ago
  • 1.0.0                                ...           4 months ago
  • 0.1.10                                ...           8 months ago
  • 0.1.9                                ...           8 months ago
  • 0.1.8                                ...           8 months ago
  • 0.1.7                                ...           8 months ago
  • 0.1.6                                ...           8 months ago
  • 0.1.5                                ...           8 months ago
  • 0.1.4                                ...           8 months ago
  • 0.1.3                                ...           8 months ago
  • 0.1.2                                ...           8 months ago
  • 0.1.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 5
Dependencies (0)
None
Dev Dependencies (554)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |