generate_tree_chart
Create hierarchical tree charts to visualize organizational structures, family trees, or file directories. Customize layout, orientation, and themes using JSON data for clear and detailed representations.
Instructions
Generate a tree chart to display hierarchical data structure, such as, organizational chart, family tree, or file directory structure.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | Yes | Tree data structure, such as, { name: 'Root', children: [{ name: 'Child 1' }, { name: 'Child 2' }] }. | |
height | No | Set the height of the chart, default is 600px. | |
layout | No | Tree layout type. Default is 'orthogonal'. | orthogonal |
orient | No | Tree orientation. LR=left-to-right, RL=right-to-left, TB=top-to-bottom, BT=bottom-to-top. Default is 'LR'. | LR |
theme | No | Set the theme for the chart, optional, default is 'default'. | default |
title | No | Set the title of the chart. | |
width | No | Set the width of the chart, default is 800px. |