I am trying to explode one segment of a pie chart. How does this work in version 10. PieExploded is obsolete now. Can't find out how to use SectorSpacing for this. Many thanks for a hint.

  • $\begingroup$ Provide some code of what you have tried. $\endgroup$
    – Edmund
    Feb 18, 2017 at 20:03
  • 1
    $\begingroup$ You can click on a segment to achieve the effect. But I do not know how to do this programmatically. +1! $\endgroup$
    – Szabolcs
    Feb 18, 2017 at 20:17
  • $\begingroup$ Thank you. Yes, I want to do it programmatically. I clicked on a segment and wanted to find out with CNTRL E to find the code snipped. But it looked far to complicated. $\endgroup$
    – Darwin1871
    Feb 18, 2017 at 21:09

1 Answer 1


The dynamic variables controlling the popout state of each segment are initialised to False in the DynamicModule container. If you alter the initialisation for a segment to True it will start in the popped out state.

This is a crude way to do that:

explode[pc_, i_] := ReplacePart[pc, Position[pc, False][[i]] -> True]

PieChart[{1, 2, 3}] ~explode~ 2

enter image description here

  • $\begingroup$ Thank you very much for explanation and roundabout. But isn't that astonishing, that there is (no longer) a simple option for that. $\endgroup$
    – Darwin1871
    Feb 19, 2017 at 11:56
  • 2
    $\begingroup$ @Darwin1871 I'm surprised there isn't a wrapper function for it like Callout or Labeled $\endgroup$ Feb 19, 2017 at 12:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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