[x] I am using English in this issue. 在这个 Issue 中我使用了英文(强烈建议)。
General Questions
PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)!
Otherwise, the issue will not be answered.
And think before you tick. :)
请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。
[x] Required: I have read the document and examples and tried to solve it by myself. (必填)我读过了文档和教程,并且曾试图自己解决问题。
[x] Required: I have searched for similar issues and that didn't help. (必填)我搜索过 issue 但是没有帮助。
[x] Required: I have tried with the latest version of ECharts and still have this problem. (必填)我试过最新版本的 ECharts,还是存在这个问题。
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
[x] Required: issue type;(必填)issue 类型
[x] Required: one sentence description in issue details;(必填)一句话的问题描述
[x] Required: demo;(必填)能反映问题的例子(如果你想提问或报 bug)
[x] Required: ECharts version;ECharts 版本
Issue Type
[ ] I have a question to ask about how to use ECharts to ...;我想提问如何使用 ECharts 实现某功能
[x] I have a bug to report;我想要报 bug
[ ] I have a feature to request, e.g.: I'd like a new feature that ...;我需要一个新功能
[ ] I have a feature to enhance, e.g.: The current feature should be improved in the way that ...;我希望改进某个功能
[ ] There's something wrong with the documents;文档有些问题
[ ] Others, or I'm not sure which issue types to choose here;其他,或我不知道应该选什么类型
Issue Details
{When using Echart's Series type as bar, the label formatter does not take html tags. My goal is to disable mouse action on bar and represent label on top as clickable, so I thought if I put a href on label formatter it would work, but this does not work}
Expected Behavior
{The label formatter should be able to identify html tags too.}
Current Behavior
{The label formatter does not identify html tags}
Online Example
THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项!
General Questions
PLEASE MAKE SURE OF ALL THE FOLLOWING OPTIONS IN REQUIRED FIELDS ARE TICKED (with x)! Otherwise, the issue will not be answered. And think before you tick. :) 请确保以下每项都打上勾了!并且确保都做了这些事哦~ 这将大量简化我们的工作流程,使你的问题更快速得到解答。
In this issue, I have provided information with: 在这个 issue 中我提供了以下信息:
Issue Type
Issue Details
{When using Echart's Series type as bar, the label formatter does not take html tags. My goal is to disable mouse action on bar and represent label on top as clickable, so I thought if I put a href on label formatter it would work, but this does not work}
Expected Behavior
{The label formatter should be able to identify html tags too.}
Current Behavior
{The label formatter does not identify html tags}
Online Example
THIS IS REQUIRED FOR ALL BUG REPORTS AND QUESTIONS!!! 如果是提问或报 bug 一定要提供这一项!
{https://jsfiddle.net/p2txk38v/5/}
series: [{ type: 'bar', cursor: 'default', itemStyle: { normal: { color: '#3b4563', label: { show: true, position: 'top', formatter: function(){ return '<a href="www.google.com"> Click Me</a>'; } } } }, data: ['2', '10'] }]
Topics
Anything Else We Need to Know
{DESCRIBE_HERE}
Environment
ECharts version;ECharts 版本: {3.2.2}
[ ] It happens only on certain browsers or operating systems. 对于特定浏览器或操作系统才会出现的问题,请提供相应环境信息:{BROWSER_VERSION_OR_OS_INFORMATION_HERE}