forked from github/dataease
Merge pull request #2561 from dataease/pr@dev@fix_view-radar
fix(视图): 仪表板全屏时雷达图有时会出现缩小问题
This commit is contained in:
commit
2ee7b21fad
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user