Pie chart
Pie charts are another common tool for categorical data, when we want to show the proportion that each category occupies out of the whole.
Syntax
pie_chart(Statistics_data)
Description
It draws a pie chart for a data sample.

Options
Option | Description | Format | Default value |
---|---|---|---|
clockwise | When set to true, values of the input data are plotted in clockwise order. If false, values are plotted counterclockwise. | Boolean. | |
color | Sets the color for the outline of pie slices. | RGB list of values | |
fill_color | Sets the color for the interior of each pie slice. Each new color is plotted in the order than it appears, an if less colors than data values are provided, the list wraps around. | A list of colors | |
labels | Provides labels for each pie slice, displayed next to the slices. These replace the default labels. | A list of Strings. | |
pie_radius | Sets the radius of the whole pie chart. | Positive Float |
|
starting_angle | An angle in radians that indicates at which angle to start plotting the first pie slice. Degrees can be used, if they are followed by the degree symbol. | Float. | |
title | Title of the pie chart, to be shown above it. | String. | |