小于5.0版本的可以使用以下方法:
先安装:
npm i echarts@4.0.4 --save
npm i echarts-for-react --save
1.原始echarts
导入
import...component/legend';
import 'echarts/lib/component/markPoint';
实例化echarts
componentDidMount() {
// 基于准备好的...pre>
{code}
);
}
}
5.0以上的暂时只能使用原始的...[5, 20, 36, 10, 10, 20],
},
],
},
};
}
componentDidMount() {
// 基于准备好的...x、y,使用left,right,top,bottom:20或'20%'为值的属性表示,
//涉及到x、y的地方都可以使用此方法尝试
backgroundColor: '