Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IE8下resize方法不起作用,界面不报错 #3923

Closed
zhangjunxia opened this issue Aug 24, 2016 · 2 comments
Closed

IE8下resize方法不起作用,界面不报错 #3923

zhangjunxia opened this issue Aug 24, 2016 · 2 comments
Labels

Comments

@zhangjunxia
Copy link

问题简述 (One-line summary)

IE8下resize方法不起作用,界面不报错

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):echarts3.2
  • 浏览器类型和版本 (Browser version):IE8
  • 操作系统类型和版本 (OS Version):win7

重现步骤 (Steps to reproduce)

1.用IE8浏览器
2.改变画图区域大小,调用resize方法

期望结果 (Expected behaviour)

图可自适应

可能哪里有问题 (What went wrong)

ECharts配置项 (ECharts option)

option = {

}

其他信息 (Other comments)

@pissang pissang added the bug label Aug 24, 2016
@publisherfk
Copy link

@pissang 你好,我现在也遇到了这个问题,请问这个bug 在下一版时会修复吗

@publisherfk
Copy link

publisherfk commented Aug 28, 2016

前两天,我也遇到了这个问题,现在的解决办法是:
myChart_divId.clear(); $("#divId").children().remove(); myChart_divId = echarts.init(document .getElementById('divId'), 'macarons'); myChart_divId.setOption(eval(options));
相当于先把以前的实例销毁掉,把之前的实例初始化出来的div删掉,再重新初始化一次,这样可能会比较吃内存,但是想不到其它好的解决办法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants