All Projects → Dolov → rc-org-chart

Dolov / rc-org-chart

Licence: other
基于 react 的组织架构组件,支持缩放、拖拽。可自定义拖拽规则,扩展性强。

Programming Languages

javascript
184084 projects - #8 most used programming language
Less
1899 projects
typescript
32286 projects

Projects that are alternatives of or similar to rc-org-chart

termgraph
terminal candle stick graph library
Stars: ✭ 62 (+226.32%)
Mutual labels:  chart
treemap-chart
A treemap interactive chart web component for visualizing hierarchical data
Stars: ✭ 27 (+42.11%)
Mutual labels:  chart
VisualFamilyTree
With this app you can create a family tree with extensive information and pictures about the individual family members.
Stars: ✭ 44 (+131.58%)
Mutual labels:  chart
open money tracker
Open Source accounting application for Android.
Stars: ✭ 19 (+0%)
Mutual labels:  chart
RKPieChart
Pie Chart written in Swift 3
Stars: ✭ 67 (+252.63%)
Mutual labels:  chart
rc-charts
一个基于BizCharts的图表库
Stars: ✭ 22 (+15.79%)
Mutual labels:  chart
dimibob-potatoes
역대 디미고 급식에서 감자가 들어간 메뉴를 전부 찾아줍니다.
Stars: ✭ 13 (-31.58%)
Mutual labels:  chart
towards5gs-helm
Open-source project providing Helm charts for deploying Free5GC and UERANSIM on a Kubernetes cluster
Stars: ✭ 53 (+178.95%)
Mutual labels:  chart
c3-rails
c3 for Rails
Stars: ✭ 15 (-21.05%)
Mutual labels:  chart
g2plot-react
G2Plot for React
Stars: ✭ 67 (+252.63%)
Mutual labels:  chart
LoadTestToolbox
Lightweight tools for load testing web applications, written in C#
Stars: ✭ 75 (+294.74%)
Mutual labels:  chart
Social-Media-Monitor
Automatically monitor and log fan counters from social media(Facebook Pages, Twitter, Instagram, YouTube, Google+, OneSignal, Alexa) using APIs to Google Spreadsheet. Very useful for website admins and social media managers.
Stars: ✭ 36 (+89.47%)
Mutual labels:  chart
aks-terraform-helm
Showcase for Azure, AKS, Terraform, Helm and Let's Encrypt
Stars: ✭ 23 (+21.05%)
Mutual labels:  chart
chart.xkcd-vue
A xkcd styled chart component for Vue.js based on chart.xkcd.
Stars: ✭ 34 (+78.95%)
Mutual labels:  chart
fl animated linechart
Animated line chart for flutter
Stars: ✭ 48 (+152.63%)
Mutual labels:  chart
GJLineChartView
支持伸缩,长按显示数据的折线图、柱状图、饼状图。
Stars: ✭ 24 (+26.32%)
Mutual labels:  chart
DepthChart
深度图
Stars: ✭ 28 (+47.37%)
Mutual labels:  chart
parallel-disk-usage
Highly parallelized, blazing fast directory tree analyzer
Stars: ✭ 145 (+663.16%)
Mutual labels:  chart
helm-charts
docs.renovatebot.com/helm-charts
Stars: ✭ 51 (+168.42%)
Mutual labels:  chart
d3-dotmatrix
Open Source Javascript library to render Dot Matrix Charts
Stars: ✭ 14 (-26.32%)
Mutual labels:  chart

rc-org-chart

基于 React 的组织结构组件

特性

  • 使用简单,可扩展性强。
  • 可拖动调整位置。
  • 可自定义位置变动规则。
  • 可自定义节点视图。

📦 安装

npm install rc-org-chart --save
yarn add rc-org-chart

🔨 示例

import OrgChart from 'rc-org-chart';

ReactDOM.render(<OrgChart />, mountNode);

引入样式:

import 'rc-org-chart/lib/style';  

🍭 API

属性 说明 类型 默认值
data 组织结构数据 (必填项且每条数据必须有唯一 id) array [ ]
pan 图层是否允许拖动 boolean true
zoom 图层是否允许缩放 boolean true
draggable 节点是否允许拖拽 boolean true
maxZoom 图层最大放大比例 number 2
minZoom 图层最大缩小比例 number 0.5
zoomStep 缩放幅度 number 2
customDrag 用户可根据具体的数据字段及业务场景制定节点拖拽规则,返回 true 则允许 drag 节点 添加到 drop 节点 (dropProps, dragProps) => true true
nodeRender 用户自定义节点的渲染 props =>
{props.name}
extraRender 位于节点下部的自定义渲染 props =>
{props.name}

⌨️ 本地开发

$ git clone [email protected]:Dolov/rc-org-chart.git
$ cd rc-org-chart
$ npm install
$ npm start

打开浏览器访问 http://127.0.0.1:8000

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].