mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 04:51:43 +08:00
fix(图表): 修复组合图右轴未设置子类别时图例显示异常
This commit is contained in:
@@ -288,7 +288,7 @@ export class GroupLineMix extends G2ChartView {
|
||||
})
|
||||
const rightCat = []
|
||||
if (!extBubble?.length) {
|
||||
rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name)
|
||||
yAxisExt?.length && rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name)
|
||||
} else {
|
||||
const { rightData } = context
|
||||
rightData.forEach(
|
||||
|
||||
@@ -258,7 +258,7 @@ export class GroupLineMix extends G2ChartView {
|
||||
merge(intervalMark, leftColorScale)
|
||||
const rightCat = []
|
||||
if (!extBubble?.length) {
|
||||
rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name)
|
||||
yAxisExt?.length && rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name)
|
||||
} else {
|
||||
const { rightData } = context
|
||||
rightData.forEach(
|
||||
|
||||
@@ -257,7 +257,7 @@ export class StackLineMix extends G2ChartView {
|
||||
merge(intervalMark, leftColorScale)
|
||||
const rightCat = []
|
||||
if (!extBubble?.length) {
|
||||
rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name)
|
||||
yAxisExt.length && rightCat.push(yAxisExt[0]?.chartShowName ?? yAxisExt[0]?.name)
|
||||
} else {
|
||||
const { rightData } = context
|
||||
rightData.forEach(
|
||||
|
||||
Reference in New Issue
Block a user