Go to file
2023-09-12 11:35:48 +08:00
.github revert: revert comment bugserver 2023-09-06 20:06:48 +08:00
.vscode feat: support example preview generation 2023-09-05 17:49:28 +08:00
common Merge remote-tracking branch 'origin/dev/1.4.0' into feat/label-line-smooth 2023-09-12 11:35:48 +08:00
docs Merge remote-tracking branch 'origin/dev/1.4.0' into feat/label-line-smooth 2023-09-12 11:35:48 +08:00
packages Merge remote-tracking branch 'origin/dev/1.4.0' into feat/label-line-smooth 2023-09-12 11:35:48 +08:00
share chore: fix the module of es build 2023-08-15 13:58:38 +08:00
tools chore: update dependencies 2023-09-12 11:30:43 +08:00
.editorconfig Initial commit 2023-06-05 13:42:06 +08:00
.eslintignore chore: update project config 2023-07-28 19:39:58 +08:00
.gitattributes Initial commit 2023-06-05 13:42:06 +08:00
.gitignore feat: support example preview generation 2023-09-05 17:49:28 +08:00
.lintstagedrc Initial commit 2023-06-05 13:42:06 +08:00
.prettierignore Initial commit 2023-06-05 13:42:06 +08:00
.prettierrc.js Initial commit 2023-06-05 13:42:06 +08:00
CODE_OF_CONDUCT.md Initial commit 2023-06-05 13:42:06 +08:00
CONTRIBUTING.md chore: add readme for document 2023-08-28 17:16:30 +08:00
CONTRIBUTING.zh-CN.md chore: add readme for document 2023-08-28 17:16:30 +08:00
LICENSE Initial commit 2023-06-05 13:42:06 +08:00
option chore(docs): path update 2023-09-06 17:19:49 +08:00
README.md Merge remote-tracking branch 'origin/develop' into dev/1.3.0 2023-08-31 19:22:36 +08:00
README.zh-CN.md Merge remote-tracking branch 'origin/develop' into dev/1.3.0 2023-08-31 19:22:36 +08:00
rush.json feat: add new package of @visactor/vutils-extension for reuse 2023-09-06 19:21:47 +08:00

VChart

VChart, more than just a cross-platform charting library, but also an expressive data storyteller.

IntroductionDemoTutorialAPICross-Platform

npm Version npm Download PRs Welcome

license

English| 简体中文

video

Introduction

VChart is a charting component library in VisActor visualization system. It wraps the charting logic based on visual grammar library VGrammar and the component encapsulation based on visual rendering engine VRender. The core capabilities are as follows:

  1. Cross-platform: Automatically adapt to desktop, H5, and multiple small program environments
  2. Storytelling: Comprehensive annotation, animation, flow control, narrative templates, and other enhanced features for visual storytelling
  3. Scenes: Deliver visual storytelling capabilities to end-users, unlock developer productivity

Repository Introduction

This repository includes the following packages:

  1. vchart: The core code repository of VChart
  2. react-vchart: The VChart component encapsulated based on React
  3. taro-vchart: The VChart component encapsulated based on Taro
  4. lark-vchart: The VChart component encapsulated based on Lark miniAPP
  5. tt-vchart: The VChart component encapsulated based on TikTok miniAPP
  6. block-vchart: The VChart component encapsulated based on Lark Block
  7. docs: VChart site source code, and also contains all Chinese and English documents, chart sample codes, etc. of the site.

🔨 Usage

📦 Installation

# npm
$ npm install @visactor/vchart

# yarn
$ yarn add @visactor/vchart

📊 A Chart Example

import VChart from '@visactor/vchart';

const spec = {
  type: 'bar',
  data: [
    {
      id: 'barData',
      values: [
        { month: 'Monday', sales: 22 },
        { month: 'Tuesday', sales: 13 },
        { month: 'Wednesday', sales: 25 },
        { month: 'Thursday', sales: 29 },
        { month: 'Friday', sales: 38 }
      ]
    }
  ],
  xField: 'month',
  yField: 'sales',
  crosshair: {
    xField: { visible: true }
  }
};

// 'chart' is the id of your dom container, such as <div id="chart"></chart>
const vchart = new VChart(spec, { dom: 'chart' });
vchart.renderAsync();

⌨️ Development

First of all, please install @microsoft/rush

$ npm i --global @microsoft/rush

Then clone locally:

# clone
$ git clone git@github.com:VisActor/VChart.git
$ cd VChart
# install dependencies
$ rush update
# start vchart development server
$ rush start
# start react-vchart development server
$ rush react
# start site development server
$ rush docs

📖 Documents

After installation & clone & update, run docs to preview documents locally.

# start vchart document server
$ rush docs

💫 Ecosystem

Project Description
React-VChart React interface for @VisActor/VChart

🤝 Contribution PRs Welcome

If you would like to contribute, please read the Code of Conduct and our contributing guide first。

Small streams converge to make great rivers and seas!