forked from github/dataease
parent
2b0169295f
commit
cd3847d5fe
@ -423,9 +423,9 @@ export class ColumnLineMix extends G2PlotChartView<DualAxesOptions, DualAxes> {
|
|||||||
formatter: (text: string, item: any, index: number) => {
|
formatter: (text: string, item: any, index: number) => {
|
||||||
let name = undefined
|
let name = undefined
|
||||||
if (item.viewId === 'left-axes-view' && text === 'value') {
|
if (item.viewId === 'left-axes-view' && text === 'value') {
|
||||||
name = left[0]?.name
|
name = left[0]?.categories[0]
|
||||||
} else if (item.viewId === 'right-axes-view' && text === 'valueExt') {
|
} else if (item.viewId === 'right-axes-view' && text === 'valueExt') {
|
||||||
name = right[0]?.name
|
name = right[0]?.categories[0]
|
||||||
}
|
}
|
||||||
item.id = item.id + '__' + index //防止重复的图例出现问题,但是左右轴如果有相同的怎么办
|
item.id = item.id + '__' + index //防止重复的图例出现问题,但是左右轴如果有相同的怎么办
|
||||||
if (name === undefined) {
|
if (name === undefined) {
|
||||||
|
Loading…
Reference in New Issue
Block a user