数据透视表生成器
从CSV/JSON数据生成交互式数据透视表,支持自定义行、列和值字段配置
API 文档
请求端点
POST /zh/api/tools/pivot-table-generator
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| inputData | textarea | 是 | - |
| dataFormat | select | 是 | - |
| rowFields | text | 否 | 用作透视表行的字段。如果为空,将使用第一个非数字字段。 |
| columnFields | text | 否 | 用作透视表列的字段。如果为空,将使用剩余字段。 |
| valueFields | text | 否 | 要聚合的数字字段。如果为空,将自动检测数字字段。 |
| aggregateFunction | select | 是 | - |
| filterConditions | textarea | 否 | 生成透视表前应用的可选筛选器。格式:字段 操作符 值 |
| includeGrandTotals | checkbox | 否 | 向透视表添加总计行和列 |
| includePercentages | checkbox | 否 | 在值旁边显示百分比 |
| maxRows | number | 否 | 透视表中显示的最大行数 |
| maxColumns | number | 否 | 透视表中显示的最大列数 |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-pivot-table-generator": {
"name": "pivot-table-generator",
"description": "从CSV/JSON数据生成交互式数据透视表,支持自定义行、列和值字段配置",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=pivot-table-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]