forked from github/dataease
fix: 雷达图空数据报错
This commit is contained in:
parent
8f055c016f
commit
41c5de5f9a
@ -28,6 +28,9 @@ export function baseRadarOption(chart_option, chart) {
|
|||||||
const maxValues = []
|
const maxValues = []
|
||||||
for (let i = 0; i < chart.data.series.length; i++) {
|
for (let i = 0; i < chart.data.series.length; i++) {
|
||||||
const y = chart.data.series[i]
|
const y = chart.data.series[i]
|
||||||
|
if (y.data.length === 0) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
// color
|
// color
|
||||||
y.itemStyle = {
|
y.itemStyle = {
|
||||||
color: hexColorToRGBA(customAttr.color.colors[i % 9], customAttr.color.alpha)
|
color: hexColorToRGBA(customAttr.color.colors[i % 9], customAttr.color.alpha)
|
||||||
|
Loading…
Reference in New Issue
Block a user