Message Boards Message Boards

Get the Piechart Labeling style found in a documentation example, MMA 11.3?

Posted 6 years ago

Hi there,

Regarding to Version 11.3 "ref/PieChart" page -> Applications (15)-> the third example.

Before evaluation:

before

After evaluation: (tiny pie chart as label )

after

Question: How to revert to the style in the first picture?

POSTED BY: Shenghui Yang
2 Replies

Add LabelingSize -> Full to the second PieChart:

data = {13, 17, 22, 21, 20, 0.6, 1.3, 2.4, 0.8, 1.9};
largeData = Take[data, 5];
smallData = Drop[data, 5];

smallPie = 
 PieChart[smallData, ImageSize -> Tiny, 
  LabelingFunction -> "RadialCenter", 
  ChartLabels -> Placed[CharacterRange["F", "Z"], "RadialOutside"]]

PieChart[Append[largeData, Total[smallData]], ImageSize -> Medium, 
 LabelingFunction -> "RadialCenter", 
 ChartLabels -> 
  Placed[Append[CharacterRange["A", "E"], smallPie], "RadialCallout"],
  PlotRange -> All, LabelingSize -> Full]
POSTED BY: Brett Champion

Sample Code:

data = {13, 17, 22, 21, 20, 0.6, 1.3, 2.4, 0.8, 1.9};
largeData = Take[data, 5];
smallData = Drop[data, 5];

smallPie = 
 PieChart[smallData, ImageSize -> Medium, 
  LabelingFunction -> "RadialCenter", 
  ChartLabels -> Placed[CharacterRange["F", "Z"], "RadialOutside"]]

PieChart[Append[largeData, Total[smallData]], ImageSize -> Medium, 
 LabelingFunction -> "RadialCenter", 
 ChartLabels -> 
  Placed[Append[CharacterRange["A", "E"], Magnify[smallPie, 0.4]], 
   "RadialCallout"], PlotRange -> All]
POSTED BY: Shenghui Yang
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract