antv-s2-expert

Configure PivotSheet, TableSheet, and grid-tree layouts in @antv/s2.

454|35|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/antvis/chart-visualization-skills --skill antv-s2-expert
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: antv-s2-expert
Source: https://github.com/antvis/chart-visualization-skills/tree/main/skills/antv-s2-expert
Command: npx skills add https://github.com/antvis/chart-visualization-skills --skill antv-s2-expert

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

S2 experts help users accelerate cross-analysis table development and API usage with authoritative guidance and ready-to-use patterns for @antv/s2.

Core Features & Use Cases

  • Role-based guidance includes templates for PivotSheet, TableSheet, and grid-tree configurations with practical examples.
  • API-oriented patterns cover data config, event handling, theming, and performance considerations across @antv/s2 packages.
  • Real-world scenario templates help engineers and analysts implement robust S2-based cross-analysis solutions quickly.

Quick Start

Provide a starter pattern for a PivotSheet dataCfg that demonstrates configuring rows, columns, and values and rendering the table.

Frequently Asked Questions about antv-s2-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure a multi-dimensional pivot table using @antv/s2?

To configure a multi-dimensional pivot table using @antv/s2, you define a dataCfg specifying rows, columns, and values, then render the table using a PivotSheet configuration pattern for structured cross-analysis layout rendering.

What is the difference between PivotSheet and TableSheet in S2?

PivotSheet handles multi-dimensional cross-analysis by structuring rows and columns hierarchically, while TableSheet presents grid-based flat data. Both layouts are supported within the @antv/s2 framework to address different analytical rendering needs.

How do I customize theming and sorting in an S2 pivot table?

You customize theming and sorting in an S2 pivot table by applying API-oriented configuration patterns that target cell strategies and totals. The framework provides rule-based instructions to adjust visual styles and data order directly.

Does S2 support event handling and advanced cell strategies for cross-tab grids?

Yes, S2 supports event handling and advanced cell strategies for cross-tab grids. The framework provides API-oriented patterns to manage interactions and customize cell rendering logic across PivotSheet, TableSheet, and grid-tree layouts.

What is the best way to handle performance considerations when building grid-tree layouts with S2?

The best way to handle performance considerations when building grid-tree layouts with S2 is to apply the provided API-oriented patterns that optimize data config and rendering. This ensures robust cross-analysis solutions without structural bottlenecks.