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

漏斗图显示错误 #373

Closed
Chrisleung opened this issue Jun 16, 2018 · 1 comment · Fixed by #380
Closed

漏斗图显示错误 #373

Chrisleung opened this issue Jun 16, 2018 · 1 comment · Fixed by #380

Comments

@Chrisleung
Copy link

Chrisleung commented Jun 16, 2018

Summary 简述

v-charts中漏斗图展示数据:
Data={A: "4", B: "3", C: "0", D: "1"}
or
Data={A: "4", B: "3", C: "5", D: "1"}
情况1: 当数组元素等于0且不是末尾一项时
情况2: 当数组元素大于前一位元素时
会显示默认漏斗图
image

在ECharts中:
上述情况会重新排序,漏斗图不会出错

data: [
    {value: 60, name: '访问'},
    {value: 40, name: '咨询'},
    {value: 20, name: '订单'},
    {value: 80, name: '点击'},
    {value: 100, name: '展现'}
]

image

Expect 期望结果

情况1: 隐藏该项
情况2: 重新排序

Reproduce 重现示例

ECharts Demo:
http://www.echartsjs.com/gallery/editor.html?c=funnel

@xiguaxigua
Copy link
Contributor

xiguaxigua commented Jun 19, 2018

升级版本(1.17.3),然后按照示例中配置就可以了。 https://jsfiddle.net/cpj3vq0s/

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

Successfully merging a pull request may close this issue.

2 participants