smithery.ai

table-creator

用于透视表的创建,当用于需要基于明细数据做出分析或?

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,221 B
  • docs SUMMARY.md 114 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Table Creator

用于透视表的创建,当用于需要基于明细数据做出分析或者展示时调用

创建步骤

  1. 基于 <https://github.com/antvis/S2>; 这个库生成透视表

- 如果用户的代码环境是 .js : 使用 @antv/s2 - 如果用户的代码环境是 React: 使用 @antv/s2-react - 如果用户的代码环境是 Vue 的使用 @antv/s2-vue - 其他场景兜底使用 @antv/s2

  1. 使用用户本地已安装的包管理器安装依赖,比如:
npm install @antv/s2 --save
yarn add @antv/s2
pnpm add @antv/s2

切记不需要额外安装包管理器

代码示例

import { PivotSheet } from '@antv/s2';

async function bootstrap() {
  const container = document.getElementById('container');

  const s2DataConfig = await fetch('https://assets.antv.antgroup.com/s2/en-data-config.json')
    .then(r => r.json())

  const s2 = new PivotSheet(container, s2DataConfig, {
    width: 600,
    height: 400,
  });

  await s2.render();
}

bootstrap()

API 文档

参考:<https://s2.antv.antgroup.com>;