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

漏斗图tooltip没有百分比 #4347

Closed
YuanYifei opened this issue Oct 28, 2016 · 2 comments
Closed

漏斗图tooltip没有百分比 #4347

YuanYifei opened this issue Oct 28, 2016 · 2 comments
Labels
enhancement stale Inactive for a long time. Will be closed in 7 days.

Comments

@YuanYifei
Copy link
Contributor

问题简述 (One-line summary)

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):3.2.3
  • 浏览器类型和版本 (Browser version):ALL
  • 操作系统类型和版本 (OS Version):ALL

重现步骤 (Steps to reproduce)

1.运行option
2.查看tooltip,百分比显示为{d}

期望结果 (Expected behaviour)

显示百分比值

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

已修改提交了pull request #4332

ECharts配置项 (ECharts option)

option = {
    "legend" : {
        "data" : ["进入", "提交"]
    },
    "tooltip" : {
        "trigger" : "item",
        "formatter" : "{a} <br/>{b} : {c}{d}"
    },
    "toolbox" : false,
    "series" : [{
            "name" : "2016-08-01",
            "type" : "funnel",
            "left" : "10%",
            "width" : "80%",
            "maxSize" : "100%",
            "label" : {
                "normal" : {
                    "formatter" : "{a}\n{b}\n{d}%",
                    "show" : true,
                    "position" : "inside"
                }
            },
            "data" : [{
                    "name" : "进入",
                    "value" : "6857"
                }, {
                    "name" : "提交",
                    "value" : "4758"
                }
            ]
        }
    ]
}

其他信息 (Other comments)

@iamziyue
Copy link

请问这个问题处理好了吗,我在3.4版本里面还是这样啊。

@YuanYifei
Copy link
Contributor Author

@iamziyue 可以参考我的pr解决, #4332

@Ovilia Ovilia added the stale Inactive for a long time. Will be closed in 7 days. label Jul 17, 2019
@stale stale bot closed this as completed Jul 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement stale Inactive for a long time. Will be closed in 7 days.
Projects
None yet
Development

No branches or pull requests

4 participants