react-g2plot
TypeScript icon, indicating that this package has built-in type declarations

0.3.2 • Public • Published

React-G2Plot

react-g2plot is an unofficial react component wrapper for @antv/g2plot.

npm Build Status npm React Supported npm

Install

$ npm install react-g2plot

Usage

import ReactDOM from 'react-dom';
import React from 'react';
 
import { Line } from '@antv/g2plot';      // import plot from G2Plot
import ReactG2Plot from 'react-g2plot';   // import React wrapper
 
ReactDOM.render(
  <ReactG2Plot
    className="your-classname"
    Ctor={Line}
    options={options}
  />,
  mountNode,
);

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.

Package Sidebar

Install

npm i react-g2plot

Weekly Downloads

18

Version

0.3.2

License

MIT

Unpacked Size

11.1 kB

Total Files

8

Last publish

Collaborators

  • atool