提交 024f48b4 authored 作者: junjie's avatar junjie

fix: 雷达图tooltip

上级 f1c46e5b
...@@ -436,11 +436,7 @@ export const BASE_RADAR = { ...@@ -436,11 +436,7 @@ export const BASE_RADAR = {
}, },
indicator: [] indicator: []
}, },
series: [{ series: []
type: 'radar',
// areaStyle: {normal: {}},
data: []
}]
} }
export const BASE_GAUGE = { export const BASE_GAUGE = {
......
...@@ -36,8 +36,19 @@ export function baseRadarOption(chart_option, chart) { ...@@ -36,8 +36,19 @@ export function baseRadarOption(chart_option, chart) {
y.label = customAttr.label y.label = customAttr.label
} }
chart_option.legend.data.push(y.name) chart_option.legend.data.push(y.name)
const d = {
name: y.name,
type: 'radar',
data: [
{
value: y.data,
name: y.name
}
]
}
y.value = JSON.parse(JSON.stringify(y.data)) y.value = JSON.parse(JSON.stringify(y.data))
chart_option.series[0].data.push(y) chart_option.series.push(d)
maxValues.push(Math.max.apply(null, y.value)) maxValues.push(Math.max.apply(null, y.value))
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论