Data Driven echarts wrapped as react components.
To make the path from data to chart shorter.
npm i d2recharts --save
A typical use case is like:
<D2Pie
data={[
{value:335, name:''},
{value:310, name:''},
{value:234, name:''},
{value:135, name:''},
{value:1548, name:''}
]}
/>
Simplest use case:
const data = [
// data goes here
];
<D2RechartsSmart data={data} />
If you want fully functionality of echarts:
const option = {
// echarts option goes here
};
<D2Recharts option={option} />