@antv/s2-vue
English | 简体中文
S2
S2 is a pure data-driven multi-dimensional cross-analysis table solution. It provides a core library, basic components, and business scenario components. With its high extensibility, developers can flexibly build complex table reports out of the box.
Homepage • Getting Started • Examples • Live DEMO

✨ Features
- Multi-dimensional cross-analysis: Say goodbye to rigid analysis dimensions and embrace free combination of any dimensions.
- High performance: Supports rendering millions of data points in under 8 seconds, and achieves sub-second rendering for drill-downs.
- High extensibility: Supports custom extensions for layout, interaction, style, and data processing.
- Out of the box: Provides production-ready
ReactandVue 3components for various analysis scenarios. Simple configuration is all you need. - Rich interactions: Supports various interactions like selection (single, multi, range), freezing, resizing, and custom interactive behaviors.
🔨 Getting Started
Install via package manager:
npm install @antv/s2 --save
yarn add @antv/s2
pnpm add @antv/s2
After installation, prepare a DOM container for rendering and import the corresponding S2 API object.
<div id="container"></div>
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()

📦 Packages
| Package | Latest | Size | Download |
|---|---|---|---|
| @antv/s2 | |||
| @antv/s2-react | |||
| @antv/s2-react-components | |||
| @antv/s2-ssr | |||
| @antv/s2-vue |
🖥️ Browser Compatibility
![]() Edge |
![]() Firefox |
![]() Chrome |
![]() Safari |
|---|---|---|---|
| Edge | last 2 versions | last 2 versions | last 2 versions |
For @antv/s2-react and @antv/s2-vue, please refer to React JavaScript environment requirements and Vite browser compatibility.
👤 Author
🤝 Contributing
Contributions, issues and feature requests are welcome. Feel free to check issues page if you want to contribute.
S2 uses pnpm as the package manager
git clone git@github.com:antvis/S2.git
cd S2
pnpm install # or pnpm bootstrap
# build all
pnpm build
# debug s2-core
pnpm core:start
# debug s2-react
pnpm react:playground
# debug s2-vue
pnpm vue:playground
# unit test
pnpm test
# check the code style and the type definition
pnpm lint
# start the website
pnpm site:start
👁️ Insight
👬 Contributors
Star History
📄 License
MIT@AntV.
Related Packages
A Vue framework for data tables and spreadsheets: a complete, themeable data tab...
A high-performance, modular Canvas-based spreadsheet engine with WASM-powered ca...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.2.0 | >=3.x | MIT | |
| 2.1.0 | >=3.x | MIT | |
| 2.0.3 | >=3.x | MIT | |
| 2.0.2 | >=3.x | MIT | |
| 2.0.1 | >=3.x | MIT | |
| 2.0.0 | >=3.x | MIT | |
| 1.7.1 | >=3.x | MIT | |
| 1.7.0 | >=3.x | MIT | |
| 1.6.1 | >=3.x | MIT | |
| 1.6.0 | >=3.x | MIT | |
| 1.5.0 | >=3.x | MIT | |
| 1.4.0 | >=3.x | MIT | |
| 1.3.0 | >=3.x | MIT | |
| 1.2.2 | >=3.x | MIT | |
| 1.2.1 | >=3.x | MIT | |
| 1.2.0 | >=3.x | MIT | |
| 1.1.0 | >=3.x | MIT | |
| 1.0.2 | >=3.x | MIT | |
| 1.0.1 | >=3.x | MIT | |
| 1.0.0 | >=3.x | MIT |
Pre-releases (31)
| Version | Released | Vue | License |
|---|---|---|---|
| 2.2.0-beta.1 | >=3.x | MIT | |
| 2.2.0-alpha.3 | >=3.x | MIT | |
| 2.2.0-alpha.2 | >=3.x | MIT | |
| 2.2.0-alpha.1 | >=3.x | MIT | |
| 2.1.0-alpha.2 | >=3.x | MIT | |
| 2.1.0-alpha.1 | >=3.x | MIT | |
| 2.0.0-alpha.1 | >=3.x | MIT | |
| 2.0.0-alpha.0 | >=3.x | MIT | |
| 2.0.0-next.16 | >=3.x | MIT | |
| 2.0.0-next.15 | >=3.x | MIT | |
| 2.0.0-next.14 | >=3.x | MIT | |
| 2.0.0-next.13 | >=3.x | MIT | |
| 2.0.0-next.12 | >=3.x | MIT | |
| 2.0.0-next.11 | >=3.x | MIT | |
| 2.0.0-next.10 | >=3.x | MIT | |
| 2.0.0-next.9 | >=3.x | MIT | |
| 2.0.0-next.8 | >=3.x | MIT | |
| 2.0.0-next.7 | >=3.x | MIT | |
| 2.0.0-next.6 | >=3.x | MIT | |
| 2.0.0-next.5 | >=3.x | MIT | |
| 2.0.0-next.4 | >=3.x | MIT | |
| 2.0.0-next.3 | >=3.x | MIT | |
| 2.0.0-next.2 | >=3.x | MIT | |
| 2.0.0-next.1 | >=3.x | MIT | |
| 1.6.0-alpha.1 | >=3.x | MIT | |
| 1.5.0-alpha.1 | >=3.x | MIT | |
| 1.4.0-alpha.1 | >=3.x | MIT | |
| 1.3.0-alpha.2 | >=3.x | MIT | |
| 1.3.0-alpha.1 | >=3.x | MIT | |
| 1.2.0-alpha.1 | >=3.x | MIT |
Showing the latest 30 of 31. See every release on npm



