generate_heatmap_chart
Create heatmap charts to visualize intensity and distribution patterns between two discrete variables, enabling analysis of association and density using customizable Cartesian coordinates.
Instructions
Generates a heatmap chart based on a Cartesian coordinate system. It is used to visualize the intensity or density of values at the intersection of two discrete variables, suitable for revealing association patterns and distribution characteristics between variables.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
background | No | Chart background color (hex). Optional, defaults to white. | |
chartTheme | No | Chart theme. Optional, defaults to 'light'. | |
colors | No | Color palette for chart elements. | |
dataTable | Yes | Heatmap data array, e.g., [{ gender: 'male', age: '20-30', size: 30 }]. | |
height | No | Chart height. Optional, defaults to 500. | |
output | No | Chart output type. Defaults to 'image'. | image |
sizeField | Yes | Measure field. Must be numeric and exist in the data. | |
subTitle | No | Chart subtitle text. | |
title | No | Chart title text. | |
titleOrient | No | Title position in the chart. | |
transpose | No | ||
width | No | Chart width. Optional, defaults to 500. | |
xAxisHasGrid | No | Show vertical grid lines for the X-axis. | |
xAxisHasLabel | No | Show X-axis labels. | |
xAxisHasTick | No | Show X-axis ticks. | |
xAxisOrient | No | X-axis position in the chart. | |
xAxisTitle | No | X-axis title. | |
xAxisType | No | X-axis type: categorical ('band') or continuous ('linear'). | |
xField | Yes | Dimension field. Must exist in the data. | |
yAxisHasGrid | No | Show horizontal grid lines for the Y-axis. | |
yAxisHasLabel | No | Show Y-axis labels. | |
yAxisHasTick | No | Show Y-axis ticks. | |
yAxisOrient | No | Y-axis position in the chart. | |
yAxisTitle | No | Y-axis title. | |
yAxisType | No | Y-axis type: categorical ('band') or continuous ('linear'). | |
yField | Yes |