1
$\begingroup$

Consider the following code:

PieChart3D[{{0.49, 0.33, 0.18},
  {0.47, 0.39, 0.15}, {0.45, 0.44, 0.09}}, 
 SectorOrigin -> {{Pi, "Clockwise"}, 12}, SectorSpacing -> Medium]

enter image description here

Is there a way in which I can make the inner and outer rings narrower than the central ring? In other words can one access individually the radii specifying each one of the three rings within the PieChart3D command?

$\endgroup$

1 Answer 1

1
$\begingroup$

You can use SectorChart3D:

enter image description here

{r1, r2, r3} = {1, 3, 1};

SectorChart3D[{Thread[{{0.49, 0.33, 0.18}, r1, 1}], 
  Thread[{{0.47, 0.39, 0.15}, r2, 1}], 
  Thread[{{0.45, 0.44, 0.09}, r3, 1}]}, 
 SectorOrigin -> {{Pi, "Clockwise"}, 12}, 
 SectorSpacing -> Medium, 
 ImageSize -> Large]

enter image description here

$\endgroup$
2
  • $\begingroup$ That's great! Thanks a bunch! $\endgroup$ Dec 15, 2021 at 10:47
  • $\begingroup$ @DanieleBinosi, my pleasure. $\endgroup$
    – kglr
    Dec 15, 2021 at 10:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.