Wolfram Language

Automatic Labeling in PieChart

Callout in PieChart puts labels in the radial direction and adjusts the positions automatically.

Get the age data of all Titanic passengers.

In[1]:=1

Use HistogramList to categorize the age data in a step of 10 years.

In[2]:=2
Out[2]=2

Visualize the composition of passengers of the Titanic in age group with PieChart.

In[3]:=3
Out[3]=3

Group the same data by sex.

In[4]:=4
Out[4]=4

Use HistogramList again to see how many male and female passengers there are in each age group.

In[5]:=5
In[6]:=6
Out[6]=6
In[7]:=7
In[8]:=8
Out[8]=8

Generate gender pie charts for each age group.

In[9]:=9
Out[9]=9

Use the gender pie charts as the labels used in the callouts.

In[10]:=10
Out[10]=10

Related Examples

Find out if you already have access to Wolfram tech through your organization
×