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

Merge pull request #475 from dataease/pr@v1.1@fix_雷达图tooltip

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