-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Closed
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.
Description
Version
5.4.3
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar
Steps to Reproduce
官方图例:https://echarts.apache.org/examples/zh/editor.html?c=mix-line-bar
修改series[0].tooltip: {
valueFormatter: function (value) {
return value + ' ml';
}
}时,图例中的tooltip发生了修改
Current Behavior
在上面的官方图例中,tooltip.trigger = 'axis',配置series.tooltip可以修改柱状图上的tooltip文案。
而在文档https://echarts.apache.org/zh/option.html#series-bar.tooltip中有以下注释:注意:series.tooltip 仅在 tooltip.trigger 为 'item' 时有效。
请问两者是否冲突。我在自己的项目中当tooltip.trigger = 'axis'时,配置的series.tooltip是无法生效的
Expected Behavior
当tooltip.trigger = 'axis'时,
可以自定义修改series.tooltip文案
Environment
- OS:
- Browser:
- Framework:Any additional comments?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugpendingWe are not sure about whether this is a bug/new feature.We are not sure about whether this is a bug/new feature.