Home > Web Front-end > HTML Tutorial > OrgChart -- 基于纯 DOM 与 CSS3 的组织结构图插件_html/css_WEB-ITnose

OrgChart -- 基于纯 DOM 与 CSS3 的组织结构图插件_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:25:25
Original
1557 people have browsed it



OrgChart 是一个基于纯DOM与CSS3的组织结构图插件

示例代码:

// sample of core source codevar datascource = {  'name': 'Lao Lao',  'title': 'general manager',  'relationship': ‘001’,  'children': [    { 'name': 'Bo Miao', 'title': 'department manager', 'relationship': ‘110’ },    { 'name': 'Su Miao', 'title': 'department manager', 'relationship': ‘111’,      'children': [        { 'name': 'Tie Hua', 'title': 'senior engineer', 'relationship': ‘110’ },        { 'name': 'Hei Hei', 'title': 'senior engineer', 'relationship': ‘110’ }      ]    },    { 'name': 'Yu Jie', 'title': 'department manager', 'relationship': ‘110’ }  ]};$('#chart-container').orgchart({  'data' : datascource,  'depth': 2,  'nodeTitle': 'name',  'nodeContent': 'title'});
Copy after login
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template