xch89820 / wx-chart-react

A react adapter for wx-chart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wx-chart-react

NPM version MIT License

A react adapter for wx-chart

Usage

Install

Use NPM:

npm i wx-chart-react --save

Use Bower:

bower install wx-chart-react

Simple Use with react

import React from 'react';
import ReactDOM from 'react-dom';
import WxLinerReact from 'wx-chart-react';

// initialization
let options = {...};
const myChart = ReactDOM.render(<WxLinerReact {...options}></WxLinerReact>, 'myCanvas');

More options, please see wx-chart documents

Special options

tooltipEvent

Set the event type fnor tooltip's component, default is mousemove

License

MIT license

About

A react adapter for wx-chart

License:MIT License


Languages

Language:JavaScript 87.9%Language:HTML 12.1%