generate_hierarchical_chart
Create hierarchical visualizations like sunburst, treemap, or circle_packing charts to display multi-level categorical data proportions, with customizable themes, dimensions, and output formats.
Instructions
Generate a chart for hierarchical visualization of multi-level categorical data proportions, include sunburst, treemap, circle_packing.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
background | No | Chart background color (hex). Optional, defaults to white. | |
chartTheme | No | Chart theme. Optional, defaults to 'light'. | |
chartType | Yes | Chart type | |
colorField | Yes | ||
colors | No | Color palette for chart elements. | |
dataTable | Yes | Hierarchical data for the chart, e.g., [{ category: 'Category 0', subCategory: 'Category 01', value: 10}]. | |
height | No | Chart height. Optional, defaults to 500. | |
output | No | Chart output type. Defaults to 'image'. | image |
subTitle | No | Chart subtitle text. | |
title | No | Chart title text. | |
titleOrient | No | Title position in the chart. | |
valueField | Yes | Measure field. Must be numeric and exist in the data. | |
width | No | Chart width. Optional, defaults to 500. |