diff --git a/src/components/Charts/Radar/index.js b/src/components/Charts/Radar/index.js index b3c1afcfe2bc13f05ecddd2c7efeccaae0a9508a..8f338bc58b3f77d1a3673ad684f90c797c7a1076 100644 --- a/src/components/Charts/Radar/index.js +++ b/src/components/Charts/Radar/index.js @@ -69,7 +69,7 @@ class Radar extends PureComponent { const chart = new G2.Chart({ container: this.node, forceFit: fit, - height: height - 22, + height: height - (hasLegend ? 80 : 22), plotCfg: { margin, }, diff --git a/src/routes/Dashboard/Workplace.js b/src/routes/Dashboard/Workplace.js index 71964fd2b4b767667a6a394b6e74c8e2bc407062..bd819f1a87b8bf9875f198a16b006108d18d7673 100644 --- a/src/routes/Dashboard/Workplace.js +++ b/src/routes/Dashboard/Workplace.js @@ -241,7 +241,7 @@ export default class Workplace extends PureComponent { loading={radarData.length === 0} >
- +