The Wayback Machine - https://web.archive.org/web/20200508171732/https://github.com/antvis/G2Plot
Skip to content
🍡 An interactive and responsive charting library
TypeScript JavaScript
Branch: master
Clone or download

Latest commit

paleface001 Combo doc (#1033)
* feat: add dualLine demo

* feat: update dualLine doc

* feat: add column-line combo doc
Latest commit 5ef6be9 May 8, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows chore: remove pr size label action (#1013) May 6, 2020
__tests__ feat: combo series line (#1026) May 8, 2020
demos fix eslint (#910) Apr 17, 2020
docs/manual Combo doc (#1033) May 8, 2020
examples feat: combo series line (#1026) May 8, 2020
scripts fix eslint (#910) Apr 17, 2020
site feat: update links Mar 17, 2020
src feat: combo series line (#1026) May 8, 2020
.commitlintrc.js feat(changelog): add commit-msg and changelog generator Nov 21, 2019
.editorconfig chore(*): 迁移仓库 Aug 22, 2019
.eslintrc fix eslint (#910) Apr 17, 2020
.gitignore fix: cleanup dependencies and imports Mar 18, 2020
.prettierignore fix eslint (#910) Apr 17, 2020
.prettierrc feat: migrate 1.x to master Mar 16, 2020
CHANGELOG.md chore: update version to 1.1.1 May 6, 2020
CONTRIBUTING.md docs: markdown format Nov 15, 2019
CONTRIBUTING.zh-CN.md docs: markdown format Nov 15, 2019
LICENSE add examples prettier Nov 7, 2019
README.md Update README.md Mar 20, 2020
README.zh-CN.md docs: fix README.md Mar 18, 2020
gatsby-browser.js fix: responsive demo Mar 20, 2020
gatsby-config.js add combo plots demo (#1019) May 6, 2020
global.d.ts chore: use jest-electron for unit test Nov 12, 2019
package.json chore: update version to 1.1.1 May 6, 2020
tsconfig.json chore: add sourcesContent to sourcemap Apr 22, 2020
webpack-dev.config.js fix: webpack-dev.config Dec 30, 2019
webpack.config.js fix: cleanup webpack config Mar 19, 2020

README.md

English | 简体中文

G2Plot

A charting library based on the Grammar of Graphics.

Version NPM downloads Latest commit CI Status coverage

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(document.getElementById('container'), {
  data,
  xField: 'sales',
  yField: 'year',
  colorField: 'year',
});

bar.render();

Contributing

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

To become a contributor, please follow our contributing guide.

License

MIT

Links

ChartCube - Online chart making tool based on G2Plot.

You can’t perform that action at this time.