瀑布图生成器
创建瀑布图来可视化累积变化,支持正负值区分和汇总显示
API 文档
请求端点
POST /zh/api/tools/waterfall-chart-generator
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| chartTitle | text | 否 | 显示在瀑布图上方的标题 |
| dataItems | textarea | 是 | JSON数组格式的数据项,包含标签、数值和可选的小计标记 |
| xAxisLabel | text | 否 | X轴的标签 |
| yAxisLabel | text | 否 | Y轴的标签 |
| positiveColor | color | 否 | 正值柱状图的颜色 |
| negativeColor | color | 否 | 负值柱状图的颜色 |
| totalColor | color | 否 | 小计和总计柱状图的颜色 |
| connectingLineColor | color | 否 | 柱状图间连接线的颜色 |
| barWidth | number | 否 | 每个柱状图的像素宽度 |
| showValues | checkbox | 否 | 在柱状图顶部显示数值 |
| showTotal | checkbox | 否 | 自动添加最终总计柱状图 |
| showConnectingLines | checkbox | 否 | 显示柱状图间的连接线 |
| valueFormat | select | 否 | - |
| fontSize | number | 否 | 标签和数值的字体大小 |
| titleSize | number | 否 | 图表标题的字体大小 |
| fontFamily | text | 否 | 文本元素的字体族 |
| chartWidth | number | 否 | 图表的像素宽度 |
| chartHeight | number | 否 | 图表的像素高度 |
| backgroundColor | color | 否 | 图表的背景颜色 |
| gridColor | color | 否 | 网格线的颜色 |
| animationEnabled | checkbox | 否 | 加载时动画显示图表 |
| animationDuration | number | 否 | 动画持续时间(毫秒) |
响应格式
{
"result": "Processed HTML content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
HTML:
HTML
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-waterfall-chart-generator": {
"name": "waterfall-chart-generator",
"description": "创建瀑布图来可视化累积变化,支持正负值区分和汇总显示",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=waterfall-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]