VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
Introduction • demo • Tutorial • API•
English| 简体中文
(video)
VTable is a canvas table library based on visual rendering engine VRender.
The core capabilities are as follows:
This repository includes the following packages:
// npm
npm install @visactor/vtable
// yarn
yarn add @visactor/vtable
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 = {
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,
widthMode:'standard'
};
const tableInstance = new VTable.ListTable(document.getElementById(CONTAINER_ID), option);
More demos and detailed tutorials
Project | Description |
---|---|
AI-generated Components | AI-generated table component. |
If you would like to contribute, please read the Code of Conduct 和 Guide first。
Small streams converge to make great rivers and seas!