Last updated
Last updated
A Pie Chart can only display one series of data. Pie charts show the size of items (called wedge) in one data series, proportional to the sum of the items.
Now we have a basic pie chart. Of course, it can be and should be presented better.
For example, the legend position is weird and overlapped with the pie. Also, we can not see any numbers from it and we don't know which part we should focus on. Therefore, Let's do some changes.
Simple is better than complex.
Readability counts. Do not make it hard to read.
As we discussed in Pie charts are poor at communicating data, especially for complicated data. Although it looks awesome, it delivers less information than tables or column charts.
Parameters
Description
x
array-like. The wedge sizes.
labels
A list. A sequence of strings providing the labels for each wedge.
colors
A sequence of matplotlib color args through which the pie chart will cycle.
autopac
A string used to label the wedges with their numeric value.
The label will be placed inside the wedge.