afc163 %!s(int64=8) %!d(string=hai) anos
pai
achega
ffb677e203
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      src/components/Charts/Pie/index.js
  2. 2 2
      src/components/Charts/Pie/index.less

+ 1 - 1
src/components/Charts/Pie/index.js

@@ -55,7 +55,7 @@ class Pie extends Component {
       height = 0,
       hasLegend,
       fit = true,
-      margin, percent, color,
+      margin = [12, 0, 12, 0], percent, color,
       inner = 0.75,
       animate = true,
       colors,

+ 2 - 2
src/components/Charts/Pie/index.less

@@ -7,8 +7,8 @@
     position: relative;
   }
   &.hasLegend .chart {
-    width: ~"calc(100% - 264px)";
-    margin-left: 24px;
+    width: ~"calc(100% - 252px)";
+    margin-left: 12px;
   }
   .legend {
     position: absolute;