Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

hustcc/React-G2Plot

Repository files navigation

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.

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /