VTable/packages/vtable
2023-10-17 16:09:32 +08:00
..
__tests__ test: add unit test 2023-10-13 15:06:40 +08:00
examples refactor: rowCount when is zero 2023-10-12 16:17:09 +08:00
nodejs feat: add basic nodejs env support 2023-10-17 16:09:32 +08:00
scripts chore: fix product in trigger-test.ts 2023-07-27 17:37:26 +08:00
src feat: add basic nodejs env support 2023-10-17 16:09:32 +08:00
.eslintrc.js feat: add basic nodejs env support 2023-10-17 16:09:32 +08:00
bundler.config.js chore: bundler add external and globals 2023-06-21 15:04:34 +08:00
CHANGELOG.json build: prelease version 0.12.0 2023-10-11 09:39:56 +00:00
CHANGELOG.md build: prelease version 0.12.0 2023-10-11 09:39:56 +00:00
jest.config.js test: add unit test 2023-09-10 19:25:14 +08:00
package.json feat: add basic nodejs env support 2023-10-17 16:09:32 +08:00
README.md docs: add tooltip custom content demo 2023-08-28 11:43:53 +08:00
setup-mock.js chore: add bugserver ci 2023-06-13 12:04:43 +08:00
tscofig.eslint.json feat: Initial commit 2023-06-05 18:48:40 +08:00
tsconfig.json feat: Initial commit 2023-06-05 18:48:40 +08:00

VTable

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•

npm Version npm Download license

English| 简体中文

video

Introduction

VTable is a canvas table library based on visual rendering engine VRender.

The core capabilities are as follows:

  1. Extreme performance: Supports fast computation and rendering of millions of data points.
  2. Multidimensional analysis: Automatically analyzes and presents multidimensional data.
  3. Strong expressiveness: Provides flexible and powerful graphic capabilities, seamlessly integrating with charts of VChart.

Repo Intro

This repository includes the following packages:

  1. vtable: VTable components
  2. vtable-docs: VTable documentation

Usage

Installation

npm package

// npm
npm install @visactor/vtable

// yarn
yarn add @visactor/vtable

Quick Start

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

Related Links

Ecosystem

Project Description
AI-generated Components AI-generated table component.

Contribution

If you would like to contribute, please read the Code of Conduct Guide first。

Small streams converge to make great rivers and seas!

License

MIT License