generate_treemap_chart
Generate a treemap chart to visualize hierarchical data and compare items at the same level, such as disk space usage.
Instructions
Generate a treemap chart to display hierarchical data and can intuitively show comparisons between items at the same level, such as, show disk space usage with treemap.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Data for treemap chart, such as, [{ name: 'Design', value: 70, children: [{ name: 'Tech', value: 20 }] }]. | |
| theme | No | Set the theme for the chart, optional, default is 'default'. | default |
| width | No | Set the width of chart, default is 600. | |
| height | No | Set the height of chart, default is 400. | |
| title | No | Set the title of chart. |