Function Repository Resource:

# OverfullPieChart

Make a pie chart that exceeds the allowed total

Contributed by: Sander Huisman
 ResourceFunction["OverfullPieChart"][{y1,y2,y3,…},max] makes a 3D pie chart of the data yi for which the maximum is max, bending it in 3D to make extra space. ResourceFunction["OverfullPieChart"][{y1,y2,y3,…},max,n] uses a mode-n bending of the surface.

## Details

Sometimes a little extra space is needed in a pie chart when the values added up exceed the maximum allowed (i.e. over 100%). When more than 100% is needed in a pie chart, the paper sheet can be bent to create some extra space in the third dimension.

## Examples

### Basic Examples (1)

Make a pie chart for which the total is 140, but the allowed total is only 100:

 In[1]:=
 Out[1]=

### Scope (2)

Without a maximum given, the maximum is assumed to be 1:

 In[2]:=
 Out[2]=

Use a higher mode of bending the paper:

 In[3]:=
 Out[3]=

### Properties and Relations (1)

Compare a regular pie chart and an overfull pie chart:

 In[4]:=
 Out[5]=

### Possible Issues (1)

If the total is less than the maximum, the paper cannot bend without ripping:

 In[6]:=

### Neat Examples (2)

See how the sheet bends in 3D:

 In[7]:=
 Out[7]=

For higher modes, the amplitude is obviously smaller:

 In[8]:=
 Out[8]=

SHuisman

## Version History

• 1.0.0 – 13 December 2021

## Author Notes

Inspired by XKCD comic 2031, where 130% of 'paper' is folded in 3D to make more space.