金字塔图生成器
生成金字塔图用于层级结构可视化,非常适合组织架构、需求层次和比例数据展示
API 文档
请求端点
POST /zh/api/tools/pyramid-chart-generator
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| chartData | textarea | 是 | 金字塔图数据。支持JSON数组或简单的标签:值文本格式 |
| chartTitle | text | 否 | 显示在图表上方的标题 |
| pyramidStyle | select | 否 | - |
| pyramidDirection | select | 否 | - |
| colorScheme | select | 否 | - |
| chartSize | number | 否 | 方形图表的像素尺寸 |
| fontSize | number | 否 | 标签的像素大小 |
| animationDuration | number | 否 | 动画的毫秒时长 |
| labelPosition | select | 否 | - |
| backgroundColor | color | 否 | 图表容器的背景颜色 |
| showValues | checkbox | 否 | 在金字塔上显示绝对数值 |
| showPercentages | checkbox | 否 | 在金字塔上显示百分比值 |
| showLabels | checkbox | 否 | 在金字塔上显示标签 |
响应格式
{
"result": "Processed HTML content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
HTML:
HTML
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-pyramid-chart-generator": {
"name": "pyramid-chart-generator",
"description": "生成金字塔图用于层级结构可视化,非常适合组织架构、需求层次和比例数据展示",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pyramid-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]