You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/10/30 07:38:48 UTC

[GitHub] [incubator-echarts] Evin-An edited a comment on issue #11522: 浏览器缩放时地图位置跑偏,需要刷新浏览器才会和数据坐标对应上

Evin-An edited a comment on issue #11522: 浏览器缩放时地图位置跑偏,需要刷新浏览器才会和数据坐标对应上
URL: https://github.com/apache/incubator-echarts/issues/11522#issuecomment-547757299
 
 
   监听浏览器resize也没用
   附上react代码:
   
   ```js
   myChart = echarts.init(this.divRef.current, null, {
       renderer: 'svg'
   });
   echarts.registerMap('world', worldChinaMap);
   
   myChart.setOption(option, true);
   
   window.addEventListener('resize', function() {
       myChart.resize('100%', '100%');
   });
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org