项目作者: hustcc

项目描述 :
:robot: Unofficial react component wrapper for @antvis/G2Plot
高级语言: TypeScript
项目地址: git://github.com/hustcc/React-G2Plot.git
创建时间: 2019-12-28T03:53:05Z
项目社区:https://github.com/hustcc/React-G2Plot

开源协议:MIT License

下载


React-G2Plot

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

npm
Build Status
npm
React Supported
npm

Install

  1. $ npm install react-g2plot

Usage

  1. import ReactDOM from 'react-dom';
  2. import React from 'react';
  3. import { Line } from '@antv/g2plot'; // import plot from G2Plot
  4. import ReactG2Plot from 'react-g2plot'; // import React wrapper
  5. ReactDOM.render(
  6. <ReactG2Plot
  7. className="your-classname"
  8. Ctor={Line}
  9. options={options}
  10. ></ReactG2Plot>,
  11. mountNode,
  12. );

Documents

All documents about plot and options are here.

Development

  1. $ npm install
  2. # run test case
  3. $ npm run test
  4. # run live demo
  5. $ npm run demo

LICENSE

MIT@hustcc.