fix(视图-分组堆叠柱状图): 提示显示分组信息。

This commit is contained in:
wisonic-s 2023-12-20 14:11:15 +08:00
parent c00c2b49c9
commit a910263ee8

View File

@ -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