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

V1.3.0 在 resize 饼图的时候报错 #133

Closed
Lancezh opened this issue Nov 13, 2013 · 2 comments
Closed

V1.3.0 在 resize 饼图的时候报错 #133

Lancezh opened this issue Nov 13, 2013 · 2 comments

Comments

@Lancezh
Copy link

Lancezh commented Nov 13, 2013

今天刚升级了1.3.0
但是在触发resize的时候 echarts报错
折线图OK
饼图的时候 firebug 报错 如下, 其他图没有测试

TypeError: center is undefined
    parsePercent(center[0], self.zr.getWidth()),

指向代码

/**
* 获取中心坐标
*/
function parseCenter(center) {
  return [
    parsePercent(center[0], self.zr.getWidth()),
    parsePercent(center[1], self.zr.getHeight()),
  ];
}

退回原先的1.2.1版本 没有问题

@kener
Copy link
Contributor

kener commented Nov 14, 2013

谢谢反馈,1.3.0升级支持百分比引入的bug,如果没定义center就会有这个问题,建议暂时定义center吧,可以用['50%','50%']就是默认配置,
尽快修复。

@Lancezh
Copy link
Author

Lancezh commented Nov 14, 2013

好的,支持echarts!

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

No branches or pull requests

2 participants