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

使用dataZoom时,切换数据导致渲染错误 #387

Closed
luohao777 opened this issue Jun 21, 2018 · 4 comments
Closed

使用dataZoom时,切换数据导致渲染错误 #387

luohao777 opened this issue Jun 21, 2018 · 4 comments

Comments

@luohao777
Copy link

Summary 简述

场景:使用dataZoom,设置一定的显示比例;
此时将data中rows所有数据变为0,放在点上为0,而图表却还有折线

当去掉dataZoom时,切换不会造成这个问题

Expect 期望结果

切换后,图表正常应为一条直线

Reproduce 重现示例

https://jsfiddle.net/seele7/8y3qdptL/20/

@xiguaxigua
Copy link
Contributor

这个应该是 echarts 切换数据+datazoom 时触发的一个数值计算错误的问题,重新渲染组件就可以了。
https://jsfiddle.net/8y3qdptL/38/

@xiguaxigua
Copy link
Contributor

直接使用 echarts 引起报错的示例 https://jsfiddle.net/aj9cemsf/21/

@xiguaxigua
Copy link
Contributor

还有另外一种修改方式,使用 afterConfig 属性修改 options 内容,这样在页面上的表现会更好一些 https://jsfiddle.net/8y3qdptL/53/

@luohao777
Copy link
Author

问题得到了解决,感谢

xiguaxigua added a commit that referenced this issue Jun 25, 2018
…he same time

when use string data in series.m sometimes will trigger display error, such as the title say, and
use array data will not.

fixed #394 #387
xiguaxigua added a commit that referenced this issue Jun 25, 2018
…he same time

when use string data in series.m sometimes will trigger display error, such as the title say, and
use array data will not.

fixed #394 #387
xiguaxigua added a commit that referenced this issue Jun 25, 2018
when use string data in series.m sometimes will trigger display error, such as the title say, and
use array data will not.

fixed #394 #387
xiguaxigua added a commit that referenced this issue Jun 25, 2018
when use string data in series.m sometimes will trigger display error, such as the title say, and
use array data will not.

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

No branches or pull requests

2 participants