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.
Answer
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

Comments
Post a Comment