FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

hustcc/React-G2Plot: :robot: Unofficial react component wrapper for @antvis/G2Plot · GitHub

Repository files navigation

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 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.

About

🤖 Unofficial react component wrapper for @antvis/G2Plot

Topics

Resources

Stars

21 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL