Unverified 提交 067a5979 authored 作者: XiaJunjie2020's avatar XiaJunjie2020 提交者: GitHub

Merge pull request #730 from dataease/pr@v1.2@fix_radar

fix: 雷达图空数据报错
...@@ -28,6 +28,9 @@ export function baseRadarOption(chart_option, chart) { ...@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论