WLJS LogoWLJS Notebook

PieChart

PieChart[{y1, y2, ...}] creates a pie chart with sector sizes proportional to the values.

Examples

Create pie charts:

PieChart[{1, 2, 3, 4}]

(* With labels *)
PieChart[{25, 35, 40},
  ChartLabels -> {"Red", "Blue", "Green"},
  ChartStyle -> {Red, Blue, Green}
]

(* Exploded sector *)
PieChart[{1, 2, Callout[3, "Largest"]}, SectorOrigin -> {Automatic, 1}]

Please visit the official Wolfram Language Reference for more details.

On this page