create_line_chart
Generate text-based line charts for visualizing temporal data directly in terminal environments. Configure data points, axis labels, chart dimensions, and colors for clear, ASCII-based data representation.
Instructions
Generate ASCII line charts for temporal data visualization
Input Schema
Name | Required | Description | Default |
---|---|---|---|
color | No | ANSI color name (red, green, blue, yellow, etc.) | |
data | Yes | Array of numeric values to plot | |
height | No | Chart height (5-50, default: 15) | |
labels | No | Optional labels for x-axis (must match data length) | |
title | No | Optional chart title | |
width | No | Chart width (10-200, default: 60) |
Input Schema (JSON Schema)
{
"examples": {
"simple": {
"data": [
10,
25,
30,
45,
60
],
"height": 12,
"title": "Sales Growth",
"width": 50
},
"temporal": {
"color": "blue",
"data": [
100,
120,
90,
140,
160,
180,
150,
200
],
"height": 15,
"labels": [
"Q1",
"Q2",
"Q3",
"Q4",
"Q1",
"Q2",
"Q3",
"Q4"
],
"title": "Quarterly Performance",
"width": 60
},
"withLabels": {
"color": "green",
"data": [
23,
45,
56,
78,
32,
45
],
"labels": [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun"
],
"title": "Monthly Revenue"
}
},
"properties": {
"color": {
"description": "ANSI color name (red, green, blue, yellow, etc.)",
"optional": true,
"type": "string"
},
"data": {
"description": "Array of numeric values to plot",
"items": {
"type": "number"
},
"type": "array"
},
"height": {
"description": "Chart height (5-50, default: 15)",
"maximum": 50,
"minimum": 5,
"optional": true,
"type": "number"
},
"labels": {
"description": "Optional labels for x-axis (must match data length)",
"items": {
"type": "string"
},
"optional": true,
"type": "array"
},
"title": {
"description": "Optional chart title",
"optional": true,
"type": "string"
},
"width": {
"description": "Chart width (10-200, default: 60)",
"maximum": 200,
"minimum": 10,
"optional": true,
"type": "number"
}
},
"required": [
"data"
],
"type": "object"
}