fix: CN-1558 解决提示框被遮挡的问题,修改提示信息

This commit is contained in:
hanyuxia
2024-02-28 10:50:45 +08:00
parent bb775239b7
commit 85a12bd058
2 changed files with 3 additions and 2 deletions

View File

@@ -278,7 +278,7 @@ export default {
const option = _.cloneDeep(pieOption)
option.color = this.pieColorRamp.map(c => `rgb(${c})`)
option.series[0].data = this.pieValueRamp.map((r, i) => ({
name: `p${i}`,
name: `${r.start}~${r.end}`,
value: r.count
}))
this.pieOption = option

View File

@@ -1,6 +1,7 @@
export const pieOption = {
tooltip: {
trigger: 'item'
trigger: 'item',
appendToBody: true//解决提示框被遮挡的问题
},
legend: {
show: false,