工具 API

generate_organization_chart

Generate an organization chart to visualize the hierarchical structure of an organization, such as, a diagram showing the relationship between a CEO and their direct reports.

其他1 积分

调用信息

工具标识
chart.generate_organization_chart
服务提供方
图表生成
平均响应
0 ms
近 7 天调用
0

输入参数

data必填

Data for organization chart which is a hierarchical structure, such as, { name: 'CEO', description: 'Chief Executive Officer', children: [{ name: 'CTO', description: 'Chief Technology Officer', children: [{ name: 'Dev Manager', description: 'Development Manager' }] }] }, and the maximum depth is 3.

orient

Orientation of the organization chart, either horizontal or vertical. Default is vertical, when the level of the chart is more than 3, it is recommended to use horizontal orientation.

style

Custom style configuration for the chart.

theme

Set the theme for the chart, optional, default is 'default'.

width

Set the width of chart, default is 600.

height

Set the height of chart, default is 400.