散点图生成器
从数据生成可自定义的散点图,支持回归线和多数据系列
API 文档
请求端点
POST /zh/api/tools/scatter-plot-generator
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| chartData | textarea | 是 | 散点图数据。支持单/多系列JSON或简单的x,y对 |
| chartTitle | text | 否 | 显示在图表上方的标题 |
| pointColors | text | 否 | 多系列的颜色(逗号分隔的十六进制颜色)。留空使用默认颜色。 |
| backgroundColor | color | 否 | 图表容器的背景颜色 |
| gridColor | color | 否 | 网格线的颜色 |
| pointSize | number | 否 | 数据点的像素大小 |
| opacity | number | 否 | 数据点的透明度(0.1到1.0) |
| chartHeight | number | 否 | 图表的像素高度 |
| xMinValue | number | 否 | X轴最小值(留空自动缩放) |
| xMaxValue | number | 否 | X轴最大值(留空自动缩放) |
| yMinValue | number | 否 | Y轴最小值(留空自动缩放) |
| yMaxValue | number | 否 | Y轴最大值(留空自动缩放) |
| xAxisLabel | text | 否 | X轴的标签 |
| yAxisLabel | text | 否 | Y轴的标签 |
| showGrid | checkbox | 否 | 显示网格线以便更好阅读 |
| showPoints | checkbox | 否 | 显示数据点(禁用则只显示回归线) |
| showLabels | checkbox | 否 | 在数据点上显示标签 |
| showRegression | 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-scatter-plot-generator": {
"name": "scatter-plot-generator",
"description": "从数据生成可自定义的散点图,支持回归线和多数据系列",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=scatter-plot-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]