Ver código fonte

fix: https://github.com/ant-design/ant-design-pro/pull/39

nikogu 8 anos atrás
pai
commit
f1c9a2a653

+ 1 - 1
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,
       },

+ 1 - 1
src/routes/Dashboard/Workplace.js

@@ -241,7 +241,7 @@ export default class Workplace extends PureComponent {
               loading={radarData.length === 0}
             >
               <div className={styles.chart}>
-                <Radar hasLegend height={286} data={radarData} />
+                <Radar hasLegend height={343} data={radarData} />
               </div>
             </Card>
             <Card