mirror of
https://github.com/dataease/dataease.git
synced 2026-06-11 15:27:02 +08:00
fix(视图): Echarts 视图图例为空时绘制失败
This commit is contained in:
@@ -49,7 +49,7 @@ export function baseBarOption(chart_option, chart, activeParam) {
|
||||
y.type = 'bar'
|
||||
y.selectedMode = true
|
||||
y.select = BASE_ECHARTS_SELECT
|
||||
chart_option.legend.data.push(y.name)
|
||||
chart_option.legend.data.push(y.name ?? 'null')
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
@@ -117,7 +117,7 @@ export function horizontalBarOption(chart_option, chart) {
|
||||
y.type = 'bar'
|
||||
y.selectedMode = true
|
||||
y.select = BASE_ECHARTS_SELECT
|
||||
chart_option.legend.data.push(y.name)
|
||||
chart_option.legend.data.push(y.name ?? 'null')
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,7 +56,7 @@ export function baseLineOption(chart_option, chart) {
|
||||
y.label = customAttr.label
|
||||
}
|
||||
y.type = 'line'
|
||||
chart_option.legend.data.push(y.name)
|
||||
chart_option.legend.data.push(y.name ?? 'null')
|
||||
chart_option.series.push(y)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user