代码拉取完成,页面将自动刷新
简体中文 | English
S2 是 AntV 在多维交叉分析表格领域的解决方案,完全基于数据驱动的方式。通过提供底层能力库,基础组件,业务场景组件以及自由扩展的能力,让开发者基于自身场景自由选择,既能开箱即用,又能自由发挥。
<8s
渲染,也能通过局部下钻来实现秒级渲染。React
, Vue3
版本表组件及配套分析组件,只需要简单的配置即可轻松实现复杂场景的表渲染。$ npm install @antv/s2
# yarn add @antv/s2
const s2DataConfig = {
fields: {
rows: ['province', 'city'],
columns: ['type'],
values: ['price'],
},
data: [
{
province: '浙江',
city: '杭州',
type: '笔',
price: '1',
},
{
province: '浙江',
city: '杭州',
type: '纸张',
price: '2',
},
{
province: '浙江',
city: '舟山',
type: '笔',
price: '17',
},
{
province: '浙江',
city: '舟山',
type: '纸张',
price: '0.5',
},
{
province: '吉林',
city: '长春',
type: '笔',
price: '8',
},
{
province: '吉林',
city: '白山',
type: '笔',
price: '9',
},
{
province: '吉林',
city: '长春',
type: ' 纸张',
price: '3',
},
{
province: '吉林',
city: '白山',
type: '纸张',
price: '1',
},
],
};
const s2Options = {
width: 600,
height: 600,
}
<div id="container"></div>
import { PivotSheet } from '@antv/s2';
const container = document.getElementById('container');
const s2 = new PivotSheet(container, s2DataConfig, s2Options);
s2.render();
Package | Latest | Beta | Alpha | Size | Download |
---|---|---|---|---|---|
@antv/s2 | |||||
@antv/s2-react | |||||
@antv/s2-vue |
git clone git@github.com:antvis/S2.git
cd S2
# 安装依赖
yarn # 或者 yarn bootstrap
# 打包
yarn build
# 调试 s2-core
yarn core:start
# 调试 s2-react
yarn react:playground
# 调试 s2-vue
yarn vue:playground
# 单元测试
yarn test
# 代码风格和类型检测
yarn lint
# 本地启动官网
yarn site:bootstrap
yarn site:start
MIT@AntV
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型