wx-chart-react
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