# wps_excel_create_chart

在Excel中创建图表。支持柱状图、折线图、饼图、散点图等多种类型。 使用场景： - "帮我用A1:B10的数据画个柱状图" -> 创建 column_clustered - "把这些数据做成折线图看趋势" -> 创建 line - "显示各部门占比" -> 创建 pie 饼图 - "分析两个变量的相关性" -> 创建 scatter 散点图 支持的图表类型： - column_clustered: 簇状柱形图（默认，最常用） - column_stacked: 堆积柱形图 - bar_clustered: 簇状条形图 - line: 折线图 - line_markers: 带标记的折线图 - pie: 饼图 - doughnut: 环形图 - scatter: 散点图 - area: 面积图 - radar: 雷达图

Agent View of the PolicyLayer registry record for `wps_excel_create_chart`. HTML page: https://policylayer.com/tools/wps-office-mcp/wps-excel-create-chart

## Facts

- Tool: `wps_excel_create_chart`
- Server: Wps Office (`wps-office-mcp`) — https://policylayer.com/tools/wps-office-mcp.md
- Install: `npx -y wps-office-mcp`
- Homepage: https://www.npmjs.com/package/wps-office-mcp
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 8 (1 required)
- Recommended policy verdict: Rate-limited

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `sheet` | string | no | 工作表名称，不填则使用当前活动工作表 |
| `title` | string | no | 图表标题，如 "销售趋势图" |
| `position` | object | no | 图表位置，不填则自动放在数据右侧 |
| `chart_type` | string | no | 图表类型，默认 column_clustered（簇状柱形图） |
| `data_range` | string | yes | 数据范围，如 A1:C10，图表数据的来源 |
| `has_header` | boolean | no | 数据第一行是否为表头，默认true |
| `show_legend` | boolean | no | 是否显示图例，默认true |
| `show_data_labels` | boolean | no | 是否显示数据标签，默认false |

Parameters from the server's own tool schema.

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "wps_excel_create_chart",
    "arguments": {
      "data_range": "<data_range>"
    }
  }
}
```

## Why wps_excel_create_chart is rated Medium

An AI agent can call wps_excel_create_chart faster than any human can review: one bad instruction and it creates or modifies resources in Wps Office by the hundred, each call as confident as the last.

Risk signals: High parameter count (12 properties)

## Use case

AI agents use wps_excel_create_chart to create or update resources in Wps Office, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your Wps Office environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches Wps Office:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "wps_excel_create_chart": {
      "limits": [
        {
          "counter": "wps_excel_create_chart_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on Wps Office (249)

- `wps_clear_cache` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-clear-cache.md
- `wps_excel_clear_range` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-clear-range.md
- `wps_excel_delete_cell_comment` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-delete-cell-comment.md
- `wps_excel_delete_column` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-delete-column.md
- `wps_excel_delete_columns` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-delete-columns.md
- `wps_excel_delete_row` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-delete-row.md
- `wps_excel_delete_rows` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-delete-rows.md
- `wps_excel_delete_sheet` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-delete-sheet.md
- `wps_excel_remove_duplicates` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-excel-remove-duplicates.md
- `wps_ppt_add_animation_preset` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-add-animation-preset.md
- `wps_ppt_delete_ppt_image` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-delete-ppt-image.md
- `wps_ppt_delete_shape` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-delete-shape.md
- `wps_ppt_delete_slide` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-delete-slide.md
- `wps_ppt_delete_textbox` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-delete-textbox.md
- `wps_ppt_remove_animation` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-remove-animation.md
- `wps_ppt_remove_ppt_hyperlink` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-remove-ppt-hyperlink.md
- `wps_ppt_remove_slide_transition` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-remove-slide-transition.md
- `wps_ppt_set_slide_transition` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-set-slide-transition.md
- `wps_ppt_set_transition` — Destructive — https://policylayer.com/tools/wps-office-mcp/wps-ppt-set-transition.md
- `wps_execute_method` — Execute — https://policylayer.com/tools/wps-office-mcp/wps-execute-method.md
- `wps_ppt_start_slide_show` — Execute — https://policylayer.com/tools/wps-office-mcp/wps-ppt-start-slide-show.md
- `wps_cache_data` — Read — https://policylayer.com/tools/wps-office-mcp/wps-cache-data.md
- `wps_check_connection` — Read — https://policylayer.com/tools/wps-office-mcp/wps-check-connection.md
- `wps_common_get_app_info` — Read — https://policylayer.com/tools/wps-office-mcp/wps-common-get-app-info.md
- `wps_common_get_selected_text` — Read — https://policylayer.com/tools/wps-office-mcp/wps-common-get-selected-text.md
- `wps_common_wire_check` — Read — https://policylayer.com/tools/wps-office-mcp/wps-common-wire-check.md
- `wps_excel_clean_data` — Read — https://policylayer.com/tools/wps-office-mcp/wps-excel-clean-data.md
- `wps_excel_find_replace` — Read — https://policylayer.com/tools/wps-office-mcp/wps-excel-find-replace.md
- `wps_excel_get_cell_comments` — Read — https://policylayer.com/tools/wps-office-mcp/wps-excel-get-cell-comments.md
- `wps_excel_get_cell_info` — Read — https://policylayer.com/tools/wps-office-mcp/wps-excel-get-cell-info.md
- …and 219 more: https://policylayer.com/tools/wps-office-mcp.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=wps-office-mcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/wps-office-mcp
