README.en-US.md

March 28, 2024 ยท View on GitHub

English | ็ฎ€ไฝ“ไธญๆ–‡

G2Plot

A chart library that is a secondary encapsulation based on the G2 4.x version.

Version NPM downloads Latest commit build Status coverage Percentage of issues still open Average time to resolve an issue

๐Ÿ“ข The new version G2 v5 has been released. There are no plans to encapsulate G2Plot v3 based on G2 v5 in the future, you can use Ant Design Charts instead.

Website โ€ข Quick Start โ€ข Blog โ€ข AntV ThemeSet

G2Plot is an interactive and responsive charting library. Based on the grammar of graphics, you can easily make superior statistical charts through a few lines of code.


โœจ Features

๐Ÿ“ฆ Pretty & Lightweight

With AntV design principles of data visualization, G2Plot provides standard and elegant visual styles as well as neat config options.

๐Ÿ“Š Responsive

G2Plot guarantees the readability of the charts in different sizes and data.

๐Ÿ”ณ Storytelling

With the feature of layers, charts can be grouped, nested or linked to do exploratory analysis and expressive storytelling.

๐Ÿ“ฆ Installation

$ npm install @antv/g2plot

๐Ÿ”จ Usage

<div id="container"></div>
import { Bar } from '@antv/g2plot';

const data = [
  { year: '1951 ๅนด', sales: 38 },
  { year: '1952 ๅนด', sales: 52 },
  { year: '1956 ๅนด', sales: 61 },
  { year: '1957 ๅนด', sales: 145 },
  { year: '1958 ๅนด', sales: 48 },
];

const bar = new Bar('container', {
  data,
  xField: 'sales',
  yField: 'year',
  seriesField: 'year',
});

bar.render();

๐Ÿค How to Contribute

Your contributions are always welcome! Please Do have a look at the issues first.

To become a contributor, please follow our contributing guide.

Thanks goes to these wonderful people (emoji key):


Visiky

๐Ÿ’ป

hustcc

๐Ÿ’ป

Joel Alan

๐Ÿ’ป

ๅˆ˜็่Žน

๐Ÿ’ป

zqlu

๐Ÿ’ป

arcsin1

๐Ÿ’ป

่ขซ้›จๆฐด่ฟ‡ๆปค็š„็ฉบๆฐ”

๐Ÿ’ป

banli

๐Ÿ’ป

xi li

๐Ÿ’ป

DarrenPei

๐Ÿ’ป

MiniPear

๐Ÿ’ป

connono

๐Ÿ’ป

ไบŽๅ‘ๅ‰

๐Ÿ’ป

afc163

๐Ÿ’ป

Martin Jul

๐Ÿ’ป

jhwong

๐Ÿ’ป

Jingsong Gao

๐Ÿ’ป

Mrๅฐๅˆ˜

๐Ÿ’ป

ntscshen

๐Ÿ’ป

yiminanci

๐Ÿ’ป

ai-qing-hai

๐Ÿ’ป

xrkffgg

๐Ÿ’ป

Dawnlck

๐Ÿ’ป

Karis

๐Ÿ’ป

Mayne

๐Ÿ’ป

Plortinus

๐Ÿ’ป

Shanjie Chen

๐Ÿ’ป

Yang Libin

๐Ÿ’ป

beewolf233

๐Ÿ’ป

lqzhgood

๐Ÿ’ป

neoddish

๐Ÿ’ป

stack-stark

๐Ÿ’ป

vector

๐Ÿ’ป

ๅ˜คๅ˜คๅ˜ค

๐Ÿ’ป

็š่‡ด่ฟœ

๐Ÿ’ป

14

๐Ÿ’ป

This project follows the all-contributors specification. Contributions of any kind welcome!

ChartCube - Online chart making tool based on G2Plot.

License

MIT