React-G2Plot
react-g2plot
is an unofficial react component wrapper for @antv/g2plot.
Install
$ npm install react-g2plot
Usage
import ReactDOM from 'react-dom';import React from 'react'; import Line from '@antv/g2plot'; // import plot from G2Plotimport ReactG2Plot from 'react-g2plot'; // import React wrapper ReactDOM;
Documents
All documents about plot
and options
are here.
Development
$ npm install # run test case $ npm run test # run live demo $ npm run demo
LICENSE
MIT@hustcc.