generate_range_column_chart
Create range column charts to visualize value ranges (min/max) across categories, enabling clear comparisons of distribution patterns. Output as image, HTML, or spec.
Instructions
Generate a range column chart to display the value range (such as minimum and maximum) for each category, suitable for comparing the range distribution across different categories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
background | No | Chart background color (hex). Optional, defaults to white. | |
chartTheme | No | Chart theme. Optional, defaults to 'light'. | |
colorField | No | Color grouping field. Should not duplicate the dimension field. | |
colors | No | Color palette for chart elements. | |
dataTable | Yes | Data for the range column chart, e.g., [{ category: 'Category 01', min: 10, max: 50 }]. | |
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. | |
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 |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"background": {
"description": "Chart background color (hex). Optional, defaults to white.",
"type": "string"
},
"chartTheme": {
"description": "Chart theme. Optional, defaults to 'light'.",
"enum": [
"light",
"dark"
],
"type": "string"
},
"colorField": {
"description": "Color grouping field. Should not duplicate the dimension field.",
"type": "string"
},
"colors": {
"anyOf": [
{
"items": {
"description": "Color value",
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Color palette for chart elements."
},
"dataTable": {
"description": "Data for the range column chart, e.g., [{ category: 'Category 01', min: 10, max: 50 }].",
"minItems": 1,
"type": "array"
},
"height": {
"description": "Chart height. Optional, defaults to 500.",
"type": "number"
},
"output": {
"default": "image",
"description": "Chart output type. Defaults to 'image'.",
"enum": [
"spec",
"image",
"html"
],
"type": "string"
},
"subTitle": {
"description": "Chart subtitle text.",
"type": "string"
},
"title": {
"description": "Chart title text.",
"type": "string"
},
"titleOrient": {
"description": "Title position in the chart.",
"enum": [
"top",
"left",
"right",
"bottom"
],
"type": "string"
},
"width": {
"description": "Chart width. Optional, defaults to 500.",
"type": "number"
},
"xAxisHasGrid": {
"description": "Show vertical grid lines for the X-axis.",
"type": "boolean"
},
"xAxisHasLabel": {
"description": "Show X-axis labels.",
"type": "boolean"
},
"xAxisHasTick": {
"description": "Show X-axis ticks.",
"type": "boolean"
},
"xAxisOrient": {
"description": "X-axis position in the chart.",
"enum": [
"bottom",
"top"
],
"type": "string"
},
"xAxisTitle": {
"description": "X-axis title.",
"type": "string"
},
"xAxisType": {
"description": "X-axis type: categorical ('band') or continuous ('linear').",
"enum": [
"band",
"linear"
],
"type": "string"
},
"xField": {
"description": "Dimension field. Must exist in the data.",
"minLength": 1,
"type": "string"
},
"yAxisHasGrid": {
"description": "Show horizontal grid lines for the Y-axis.",
"type": "boolean"
},
"yAxisHasLabel": {
"description": "Show Y-axis labels.",
"type": "boolean"
},
"yAxisHasTick": {
"description": "Show Y-axis ticks.",
"type": "boolean"
},
"yAxisOrient": {
"description": "Y-axis position in the chart.",
"enum": [
"left",
"right"
],
"type": "string"
},
"yAxisTitle": {
"description": "Y-axis title.",
"type": "string"
},
"yAxisType": {
"description": "Y-axis type: categorical ('band') or continuous ('linear').",
"enum": [
"band",
"linear"
],
"type": "string"
},
"yField": {
"items": {
"description": "Measure field. Must be numeric and exist in the data.",
"minLength": 1,
"type": "string"
},
"maxItems": 2,
"minItems": 2,
"type": "array"
}
},
"required": [
"dataTable",
"xField",
"yField"
],
"type": "object"
}