Go to file
2024-10-31 15:37:41 +08:00
.github chore: disable bugserver temp 2024-09-27 18:36:29 +08:00
.vscode docs: rename en faq_docs 2024-09-23 18:59:23 +08:00
common fix: upgrade vrender to 0.20.12, vgrammar to 0.14.13 2024-10-31 15:37:41 +08:00
docs fix: upgrade vrender to 0.20.12, vgrammar to 0.14.13 2024-10-31 15:37:41 +08:00
packages fix: upgrade vrender to 0.20.12, vgrammar to 0.14.13 2024-10-31 15:37:41 +08:00
share Merge remote-tracking branch 'origin/main' into release/1.5.4 2023-10-30 14:41:57 +08:00
tools fix: upgrade vrender to 0.20.12, vgrammar to 0.14.13 2024-10-31 15:37:41 +08:00
.editorconfig
.eslintignore feat: add harmony_vchart package 2024-05-16 15:06:06 +08:00
.gitattributes
.gitignore feat: add wx simple entry 2023-11-22 19:39:50 +08:00
.lintstagedrc
.prettierignore perf: use group encode in static encodes 2023-11-03 16:07:56 +08:00
.prettierrc.js
CODE_OF_CONDUCT.md
CONTRIBUTING.ja-JP.md docs: add Japanese versions of README.md and CONTRIBUTING.md 2024-10-17 21:28:04 +09:00
CONTRIBUTING.md docs: add the guid of promotion issue 2024-06-26 20:53:19 +08:00
CONTRIBUTING.zh-CN.md docs: add the guid of promotion issue 2024-06-26 20:53:19 +08:00
LICENSE
option chore(docs): path update 2023-09-06 17:19:49 +08:00
package-lock.json fix: Incorrectly updated package.json 2024-05-28 10:44:45 +08:00
package.json fix: Incorrectly updated package.json 2024-05-28 10:44:45 +08:00
pnpm-lock.yaml feat: liquid support reverse and target mark. close#2977 & close#2978 2024-07-21 16:25:35 +08:00
README.ja-JP.md docs: add Japanese versions of README.md and CONTRIBUTING.md 2024-10-17 21:28:04 +09:00
README.md docs: add Japanese versions of README.md and CONTRIBUTING.md 2024-10-17 21:28:04 +09:00
README.zh-CN.md docs: add Japanese versions of README.md and CONTRIBUTING.md 2024-10-17 21:28:04 +09:00
rush.json fix: fix issue with harmony props ignore function 2024-08-06 15:35:28 +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. wx-vchartThe VChart component encapsulated based on Wx miniAPP
  8. 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
OpenInula-VChart OpenInula VChart Components
OMI Web Components Framework

🤝 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!