title: Is there a way to center label in nested pie chart without using magic numbers as radius for Amchart v4?
body: <p>My problem: i would like to find an automatic way to center labels in donut chart cells. In my case each cells contains an array of complex objects, what i want is to show the number of those objects.</p>
  
  <p>See:
  <a href="https://i.stack.imgur.com/le1ZB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/le1ZB.png" alt="enter image description here"></a></p>
  
  <p>Playing with radius, allowed me to find those values: </p>
  
  <ul>
  <li>First layer: -28</li>
  <li>Second layer: -20</li>
  <li>Third layer: -10</li>
  <li>Fourth layer: -8</li>
  </ul>
  
  <p>I applied it as a quick fix but i don't like this solution, as it's fixed for 4 layers (what if I need to add an other layer ? etc....) and using "magic numbers" is unmaintenable...</p>
  
  <p>Do you have a better solution ?</p>
  
  <p>You can test it here: <a href="https://jsfiddle.net/aliz/gwz7om9e/" rel="nofollow noreferrer">https://jsfiddle.net/aliz/gwz7om9e/</a></p>
  
  <p>Line 40:</p>
  
  <pre><code> pieSeries.labels.template.radius = am4core.percent(positionRadiusInPie);
  </code></pre>
  
  <p>Note:
  Using those attributes didn't work: "horizontalCenter", "VerticalCenter", "textAlign", "align".</p>
  
  <p>EDIT: response to Bhavik Kalariya</p>
  
  <p>This is what I get if I force one radius for all layers.
  <a href="https://i.stack.imgur.com/zRNzU.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zRNzU.jpg" alt="enter image description here"></a></p>