Merge pull request #2561 from dataease/pr@dev@fix_view-radar

fix(视图): 仪表板全屏时雷达图有时会出现缩小问题
This commit is contained in:
王嘉豪 2022-07-04 11:05:02 +08:00 committed by GitHub
commit 2ee7b21fad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,6 +73,7 @@ export function baseRadarOptionAntV(plot, container, chart, action) {
if (customAttr.size) { if (customAttr.size) {
const s = JSON.parse(JSON.stringify(customAttr.size)) const s = JSON.parse(JSON.stringify(customAttr.size))
options.radius = parseFloat(parseInt(s.radarSize) / 100) options.radius = parseFloat(parseInt(s.radarSize) / 100)
options.radius = options.radius > 1 ? 1 : options.radius
if (s.radarShape === 'polygon') { if (s.radarShape === 'polygon') {
yAxis.grid = { yAxis.grid = {
line: { line: {