VTable/README.md

187 lines
5.2 KiB
Markdown
Raw Normal View History

2023-06-05 10:48:40 +00:00
<div align="center">
<a href="https://github.com/VisActor#gh-light-mode-only" target="_blank">
<img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/>
</a>
<a href="https://github.com/VisActor#gh-dark-mode-only" target="_blank">
<img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_dark.svg"/>
2023-06-05 10:48:40 +00:00
</a>
</div>
<div align="center">
<h1>VTable</h1>
</div>
<div align="center">
VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.
<p align="center">
2023-08-21 06:43:03 +00:00
<a href="https://visactor.io/vtable">Introduction</a>
<a href="https://visactor.io/vtable/example">demo</a>
<a href="https://visactor.io/vtable/guide/Getting_Started/Getting_Started">Tutorial</a>
<a href="https://visactor.io/vtable/option/ListTable">API</a>
2023-06-05 10:48:40 +00:00
</p>
2023-06-20 06:20:34 +00:00
![](https://github.com/visactor/vtable/actions/workflows/bug-server.yml/badge.svg)
![](https://github.com/visactor/vtable/actions/workflows/unit-test.yml/badge.svg)
2023-06-05 10:48:40 +00:00
[![npm Version](https://img.shields.io/npm/v/@visactor/vtable.svg)](https://www.npmjs.com/package/@visactor/vtable)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vtable.svg)](https://www.npmjs.com/package/@visactor/vtable)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vtable/blob/main/LICENSE)
</div>
<div align="center">
English| [简体中文](./README.zh-CN.md)
</div>
<div align="center">
video
</div>
# Introduction
VTable is based on visual rendering engine [VRender](https://github.com/VisActor/VRender).
2023-06-05 10:48:40 +00:00
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](https://github.com/VisActor/VChart).
2023-09-01 11:44:51 +00:00
# Repository Introduction
2023-06-05 10:48:40 +00:00
This repository includes the following packages:
2023-09-01 11:44:51 +00:00
1. packages/vtable: The core code repository of VTable
2. docs: Include VTable site tutorials, demos,apis and options, and also contains all Chinese and English documents.
2023-06-05 10:48:40 +00:00
# Usage
## Installation
[npm package](https://www.npmjs.com/package/@visactor/vtable)
```bash
// npm
npm install @visactor/vtable
// yarn
yarn add @visactor/vtable
```
## Quick Start
```javascript
2023-07-28 07:27:58 +00:00
// this demo you can run on codesanbox https://codesandbox.io/s/vtable-simple-demo-g8q738
2023-06-05 10:48:40 +00:00
import * as VTable from '@visactor/vtable';
const columns =[
{
2023-07-28 07:27:58 +00:00
"field": "Order ID",
2023-06-05 10:48:40 +00:00
"caption": "Order ID",
},
{
2023-07-28 07:27:58 +00:00
"field": "Customer ID",
2023-06-05 10:48:40 +00:00
"caption": "Customer ID",
},
{
2023-07-28 07:27:58 +00:00
"field": "Product Name",
2023-06-05 10:48:40 +00:00
"caption": "Product Name",
},
{
2023-07-28 07:27:58 +00:00
"field": "Sales",
2023-06-05 10:48:40 +00:00
"caption": "Sales",
},
{
2023-07-28 07:27:58 +00:00
"field": "Profit",
2023-06-05 10:48:40 +00:00
"caption": "Profit",
}
];
const option = {
2023-08-28 03:43:53 +00:00
container: document.getElementById(CONTAINER_ID),
2023-06-05 10:48:40 +00:00
records:[
2023-07-05 04:37:08 +00:00
{
2023-07-28 07:27:58 +00:00
"Order ID": "CA-2018-156720",
"Customer ID": "JM-15580",
"Product Name": "Bagged Rubber Bands",
"Sales": "3.024",
"Profit": "-0.605"
2023-07-05 04:37:08 +00:00
},
{
2023-07-28 07:27:58 +00:00
"Order ID": "CA-2018-115427",
"Customer ID": "EB-13975",
"Product Name": "GBC Binding covers",
"Sales": "20.72",
"Profit": "6.475"
2023-07-05 04:37:08 +00:00
},
// ...
2023-06-05 10:48:40 +00:00
],
columns,
};
const tableInstance = new VTable.ListTable(option);
```
##
[More demos and detailed tutorials](https://visactor.io/vtable)
2023-09-01 11:44:51 +00:00
# ⌨️ Development
2023-07-28 07:27:58 +00:00
First of all, please install [@microsoft/rush](https://rushjs.io/pages/intro/get_started/)
```bash
$ npm i --global @microsoft/rush
```
Then clone locally:
```bash
# clone
$ git clone git@github.com:VisActor/VTable.git
$ cd VTable
# install dependencies
$ rush update
# start vtable demo
$ cd packages/vtable
2023-09-01 11:44:51 +00:00
# execute in file path: ./packages/vtable
2023-07-28 07:27:58 +00:00
$ rushx demo
2023-09-01 11:44:51 +00:00
# start site development server, execute in file path: ./
$ rush docs
2023-07-28 07:27:58 +00:00
```
2023-09-01 11:44:51 +00:00
# 📖 Documents
After installation & clone & update, run docs to preview VTable documents locally.
```bash
# start vtable document server. execute in file path: ./
$ rush docs
```
## 🔗 Related Links
2023-06-05 10:48:40 +00:00
- [Official website](https://visactor.io/vtable)
2023-10-28 09:35:27 +00:00
- [Usage Trend](https://npm-compare.com/@visactor/vtable)
2023-06-05 10:48:40 +00:00
2023-09-01 11:44:51 +00:00
# 💫 Ecosystem
2023-06-05 10:48:40 +00:00
| Project | Description |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| [AI-generated Components](https://visactor.io/ai-vtable) | AI-generated table component. |
2023-09-01 11:44:51 +00:00
# 🤝 Contribution
2023-06-05 10:48:40 +00:00
2023-10-08 09:23:19 +00:00
If you would like to contribute, please read the [Code of Conduct ](./CODE_OF_CONDUCT.md) and [ Guide](./CONTRIBUTING.zh-CN.md) first。
2023-06-05 10:48:40 +00:00
Small streams converge to make great rivers and seas!
<a href="https://github.com/visactor/vtable/graphs/contributors"><img src="https://contrib.rocks/image?repo=visactor/vtable" /></a>
# License
[MIT License](./LICENSE)