折线图生成器
从数据生成可自定义的多条折线图,支持多种样式选项
API 文档
请求端点
POST /zh/api/tools/line-chart-generator
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| chartData | textarea | 是 | 图表数据。支持单线数组、多线对象或简单文本格式 |
| chartTitle | text | 否 | 显示在图表上方的标题 |
| curveType | select | 否 | - |
| lineColors | text | 否 | 多条线的颜色(逗号分隔的十六进制颜色)。留空使用默认颜色。 |
| backgroundColor | color | 否 | 图表容器的背景颜色 |
| gridColor | color | 否 | 网格线的颜色 |
| lineWidth | number | 否 | 线条的像素宽度 |
| chartHeight | number | 否 | 图表的像素高度 |
| maxValue | number | 否 | Y轴最大值(留空自动缩放) |
| minValue | number | 否 | Y轴最小值 |
| xAxisLabel | text | 否 | X轴的标签 |
| yAxisLabel | text | 否 | Y轴的标签 |
| showGrid | checkbox | 否 | 显示网格线以便更好阅读 |
| showPoints | checkbox | 否 | 在线上显示数据点 |
| showValues | checkbox | 否 | 在数据点上显示实际数值 |
| fillArea | checkbox | 否 | 用颜色填充线条下方的区域 |
| showLegend | checkbox | 否 | 在图表下方显示图例 |
响应格式
{
"result": "Processed HTML content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
HTML:
HTML
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-line-chart-generator": {
"name": "line-chart-generator",
"description": "从数据生成可自定义的多条折线图,支持多种样式选项",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=line-chart-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]