基于echarts和react的组建应用 ECharts Components for React
npm i xiaoy-react-echarts
import Echarts from './xiaoy-react-echarts'
<Echarts options={options} style={} loading={loading}/>
Name | Type | Default | Description |
---|---|---|---|
options | object | ECharts图表的配置项和数据 | |
style | object | styles | 可选,样式设置 |
loading | boolean | false | 可选,echarts自带的loading状态 |