forked from github/dataease
fix(视图): 堆叠图label,tooltip偶尔不显示的问题
This commit is contained in:
parent
1f655bf46d
commit
adf1d1b7c6
@ -143,7 +143,7 @@ export function getLabel(chart) {
|
||||
yAxis = JSON.parse(JSON.stringify(chart.yaxis))
|
||||
}
|
||||
|
||||
if (chart.type === 'bar-stack' || chart.type === 'line-stack') {
|
||||
if (chart.type === 'bar-stack' || chart.type === 'line-stack' || chart.type === 'bar-stack-horizontal') {
|
||||
const f = yAxis[0]
|
||||
if (f.formatterCfg) {
|
||||
res = valueFormatter(param.value, f.formatterCfg)
|
||||
@ -196,7 +196,7 @@ export function getTooltip(chart) {
|
||||
}
|
||||
|
||||
let obj
|
||||
if (chart.type === 'bar-stack' || chart.type === 'line-stack') {
|
||||
if (chart.type === 'bar-stack' || chart.type === 'line-stack' || chart.type === 'bar-stack-horizontal') {
|
||||
obj = { name: param.category, value: param.value }
|
||||
const f = yAxis[0]
|
||||
if (f.formatterCfg) {
|
||||
|
Loading…
Reference in New Issue
Block a user