# react-orgchart
**Repository Path**: CH_PROJECT/react-orgchart
## Basic Information
- **Project Name**: react-orgchart
- **Description**: No description available
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 1
- **Created**: 2021-05-05
- **Last Updated**: 2021-05-05
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# @ctrl/react-orgchart [](https://www.npmjs.com/package/@ctrl/react-orgchart) [](https://circleci.com/gh/scttcper/react-orgchart)
> React wrapper around a [d3](https://d3js.org/) v6 based org chart.
This is based on [smartprocure/react-org-chart](https://github.com/smartprocure/react-org-chart) which itself is also a fork. This fork has been updated to use d3 v6 and expose typescript types.
DEMO: https://ctrl-react-orgchart.vercel.app
### Install
```console
npm install @ctrl/react-orgchart
```
### Use
```tsx
import { OrgChart } from '@ctrl/react-orgchart';
;
```
#### Sample tree data
```js
{
id: 1,
entity: {
id: 1,
// base 64 image
avatar: 'data:image/jpeg;base64,/9j....',
name: 'Jane Doe',
title: 'IT',
},
children: [
{
id: 2,
entity: {
id: 2,
// svg example
avatar: '',
name: 'John Foo',
title: 'CTO',
},
children: [],
},
],
}
```