VTable,不只是一款高性能的多维数据分析表格,更是一个在行列间创作的方格艺术家。
(video)
VTable 是 VisActor 可视化体系中的表格组件库,基于可视化渲染引擎 VRender 进行封装。 核心能力如下:
本仓库包含如下 package
// npm
npm install @visactor/vtable
// yarn
yarn add @visactor/vtable
// this demo you can run on codesanbox https://codesandbox.io/s/vtable-simple-demo-g8q738
import * as VTable from '@visactor/vtable';
const columns = [
{
field: 'Order ID',
caption: 'Order ID'
},
{
field: 'Customer ID',
caption: 'Customer ID'
},
{
field: 'Product Name',
caption: 'Product Name'
},
{
field: 'Sales',
caption: 'Sales'
},
{
field: 'Profit',
caption: 'Profit'
}
];
const option = {
container: document.getElementById(CONTAINER_ID),
records: [
{
'Order ID': 'CA-2018-156720',
'Customer ID': 'JM-15580',
'Product Name': 'Bagged Rubber Bands',
Sales: '3.024',
Profit: '-0.605'
},
{
'Order ID': 'CA-2018-115427',
'Customer ID': 'EB-13975',
'Product Name': 'GBC Binding covers',
Sales: '20.72',
Profit: '6.475'
}
// ...
],
columns
};
const tableInstance = new VTable.ListTable(option);
首先,全局安装 @microsoft/rush
$ npm i --global @microsoft/rush
接着将代码 clone 至本地:
# clone
$ git clone git@github.com:VisActor/VTable.git
$ cd VTable
# install dependencies
$ rush update
# start vtable demo
$ cd packages/vtable
# execute in file path: ./packages/vtable
$ rushx demo
# start site development server, execute in file path: ./
$ rush docs
# after execut git commit, please run the following command to update the change log. Please execute in file path: ./
$ rush change-all
After installation & clone & update, run docs to preview VTable documents locally.
# start vtable document server. execute in file path: ./
$ rush update
$ rush build
$ rush docs
$ rush purge
$ rush update
| Project | Description |
|---|---|
| React-VTable | VTable React 组件 |
细流成河,终成大海!
$ claude mcp add VTable \
-- python -m otcore.mcp_server <graph>