generate_boxplot_chart
Create boxplot charts to visualize and compare data distributions across categories. Customize axis titles, themes, dimensions, and output formats (png, svg, option) for detailed statistical analysis.
Instructions
Generate a boxplot chart to show data for statistical summaries among different categories, such as, comparing the distribution of data points across categories.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
axisXTitle | No | Set the x-axis title of chart. | |
axisYTitle | No | Set the y-axis title of chart. | |
data | Yes | Data for boxplot chart, such as, [{ category: 'Category A', value: 10 }, { category: 'Category B', value: 20, group: 'Group A' }]. | |
height | No | Set the height of the chart, default is 600px. | |
outputType | No | The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the valid ECharts option. | png |
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. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"axisXTitle": {
"default": "",
"description": "Set the x-axis title of chart.",
"type": "string"
},
"axisYTitle": {
"default": "",
"description": "Set the y-axis title of chart.",
"type": "string"
},
"data": {
"description": "Data for boxplot chart, such as, [{ category: 'Category A', value: 10 }, { category: 'Category B', value: 20, group: 'Group A' }].",
"items": {
"additionalProperties": false,
"properties": {
"category": {
"description": "Category of the data point, such as 'Category A'.",
"type": "string"
},
"group": {
"description": "Optional group for the data point, used for grouping in the boxplot.",
"type": "string"
},
"value": {
"description": "Value of the data point, such as 10.",
"type": "number"
}
},
"required": [
"category",
"value"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"height": {
"default": 600,
"description": "Set the height of the chart, default is 600px.",
"exclusiveMinimum": 0,
"type": "integer"
},
"outputType": {
"default": "png",
"description": "The output type of the diagram. Can be 'png', 'svg' or 'option'. Default is 'png', 'png' will return the rendered PNG image, 'svg' will return the rendered SVG string, and 'option' will return the valid ECharts option.",
"enum": [
"png",
"svg",
"option"
],
"type": "string"
},
"theme": {
"default": "default",
"description": "Set the theme for the chart, optional, default is 'default'.",
"enum": [
"default",
"dark"
],
"type": "string"
},
"title": {
"description": "Set the title of the chart.",
"type": "string"
},
"width": {
"default": 800,
"description": "Set the width of the chart, default is 800px.",
"exclusiveMinimum": 0,
"type": "integer"
}
},
"required": [
"data"
],
"type": "object"
}