New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-g2plot

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-g2plot

Unofficial react component wrapper for @antv/g2plot.

latest
Source
npmnpm
Version
0.3.2
Version published
Weekly downloads
30
-11.76%
Maintainers
1
Weekly downloads
 
Created
Source

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.

Keywords

react

FAQs

Package last updated on 28 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts