Back to rankings

VisActor/VChart

TypeScriptvisactor.io/vchart

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

chartcharting-librarydatavisualization3dchartcanvascanvas2dnarrative-visualizationreact-chartvue-chartplotdatavizvis
Star Growth
Stars
1.8k
Forks
215
Weekly Growth
โ€”
Issues
226
5001k1.5k
Jun 2023Jun 2024Jul 2025Jul 2026
Artifactsnpmnpm install vchart
README

VChart

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

Introduction โ€ข Demo โ€ข Tutorial โ€ข APIโ€ข Cross-Platform

npm Version npm Download PRs Welcome

license

๏ผˆ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. block-vchart: The VChart component encapsulated based on Lark Block
  6. wx-vchart๏ผšThe VChart component encapsulated based on Wx miniAPP
  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 VTable documents locally.

# start vtable document server. execute in file path: ./
$ rush update
$ rush build
$ rush docs

If you meet dependency problems

$ rush purge
$ rush update

๐Ÿ’ซ Ecosystem

Project Description
React-VChart React interface for @VisActor/VChart
OpenInula-VChart OpenInula VChart Components
OMI Web Components Framework
A vercel template built with vchart and Next.js A modern dashboard template built with vchart and Next.js, featuring a beautiful UI and rich data visualization components.

Star History

Star History Chart

๐Ÿ’– Thanks

Thanks to Semi for providing the theme visualization customization solution.

๐Ÿค 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!

Related repositories
d3/d3

Bring data to life with SVG, Canvas and HTML. :bar_chart::chart_with_upwards_trend::tada:

ShellISC Licensevisualizationdata-visualization
d3js.org
113.3k22.7k
chartjs/Chart.js

Simple HTML5 Charts using the <canvas> tag

JavaScriptnpmMIT Licensejavascriptchart
chartjs.org
67.6k11.9k
PhilJay/MPAndroidChart

A powerful ๐Ÿš€ Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.

JavaMavenOtherjavachart
philippjahoda.com
38.2k9k
helm/helm

The Kubernetes Package Manager

GoGo ModulesApache License 2.0cncfchart
helm.sh
30k7.7k
recharts/recharts

Redefined chart library built with React and D3

TypeScriptnpmMIT Licensereactcharting-library
recharts.github.io
27.4k2k
airbnb/visx

๐Ÿฏ visx | visualization components

TypeScriptnpmMIT Licensevxreact
visx.airbnb.tech
21k767
qax-os/excelize

Go language library for reading and writing Microsoft Excelโ„ข (XLAM / XLSM / XLSX / XLTM / XLTX) spreadsheets

GoGo ModulesBSD 3-Clause "New" or "Revised" Licensexlsxexcel
xuri.me/excelize
20.8k1.9k
nhn/tui.editor

๐Ÿž๐Ÿ“ Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.

TypeScriptnpmMIT Licenseeditorwysiwyg
ui.toast.com/tui-editor
18k1.9k
dream-num/Luckysheet

Luckysheet upgraded to Univer

JavaScriptnpmMIT Licensespreadsheetjavascript
github.com/dream-num/univer/
16.7k2.6k
frappe/charts

Simple, responsive, modern SVG Charts with zero dependencies

JavaScriptnpmMIT Licensechartjavascript
frappe.io/charts/docs
15.1k750
webpack/webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

JavaScriptnpmMIT Licensewebpackwebpack-bundle-analyzer
12.7k508
webpack-contrib/webpack-bundle-analyzer

Webpack plugin and CLI utility that represents bundle content as convenient interactive zoomable treemap

JavaScriptnpmMIT Licensewebpackwebpack-bundle-analyzer
12.6k489