fix(视图-分组堆叠柱状图): 提示显示分组信息。
This commit is contained in:
parent
c00c2b49c9
commit
a910263ee8
@ -344,6 +344,9 @@ export function getTooltip(chart) {
|
||||
|
||||
// tooltip value formatter
|
||||
if (chart.type && chart.type !== 'waterfall') {
|
||||
if (chart.type === 'bar-group-stack') {
|
||||
tooltip.fields = []
|
||||
}
|
||||
tooltip.formatter = function(param) {
|
||||
let res = param.value
|
||||
|
||||
@ -455,7 +458,7 @@ export function getTooltip(chart) {
|
||||
} else {
|
||||
let name = ''
|
||||
if (param.group) {
|
||||
name = param.name + '-'
|
||||
name = param.group + '-'
|
||||
}
|
||||
if (param.category) {
|
||||
name += param.category
|
||||
|
||||
Loading…
Reference in New Issue
Block a user