resize
function resize() {
if (instance && !instance.isDisposed()) {
// temporarily suppress errors caused by https://github.com/apache/echarts/issues/14846
try {
instance.resize();
} catch (e) {
if (e.message === "Cannot read property 'get' of undefined") {
return;
}
throw e;
}
}
}
echarts for react
在线文档 https://git.hust.cc/echarts-for-react/
https://github.com/hustcc/echarts-for-react
yarn add echarts-for-react