echarts-for-react
echarts-for-react copied to clipboard
⛳️ Apache ECharts components for React wrapper. 一个简单的 Apache echarts 的 React 封装。
原有代码逻辑如下: import echarts from 'echarts'; import chinaJson from 'echarts/map/json/china.json'; componentDidMount() { echarts.registerMap('china', chinaJson); }
在Component中使用 如果需要用到props或者state的话我就需要 onEvents = { 'legendselectchanged': this.legendselectchanged.bind(this) } .bind(this)的这个操作就会造成图表重新刷新 如果不.bind(this)就不会重新刷新,但是这样就没办法使用 props和state
这边用的是antd prolayout ,侧边栏的数据时从服务端拉取的,拉取之后会改变echart的父布局的宽高,我这边设置的style是width: '100%',偶现初始化的时候,echart布局超出了父布局,后续改变父布局宽高,能正常自适应,试了下isInitialResize初始值改成false,能解决这个问题,在componentDidMount调resize也不生效,应该是渲染时序问题,请问有更好的办法解决这个问题吗?
TS1205: Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.
在 echarts-for-react 中该如何使用 dispatchAction 方法呢
After loosing half a day of trying to have this working, there seems to be something broken when Jest is involved. The instructions in the README.md do not seem to...
This PR adds [`tslib`](https://www.npmjs.com/package/tslib) as a runtime dependency for this library. When we tried to incorporate this dependency into our monorepo app, we ran into the following errors: ``` ERROR...
option = { backgroundColor: '#000', globe: { baseTexture: ROOT_PATH + '/data-gl/asset/earth.jpg', heightTexture: ROOT_PATH + '/data-gl/asset/bathymetry_bw_composite_4k.jpg', displacementScale: 0.1, shading: 'lambert', environment: ROOT_PATH + '/data-gl/asset/starfield.jpg', light: { ambient: { intensity: 0.1 },...
Hello team. I was trying to reduce the bundle size following the example available on your git repository but I don't see any improvement. The final result is very similar....