Python Data Visualization Cookbook (Second Edition)
by Igor Milovanovic, Dimitry Foures, Giuseppe Vettigli
Making pie charts count
Pie charts are special in many ways, the most important being that the dataset they display must sum up to 100 percent or they are just not valid.
Getting ready
Pie charts represent numerical proportions, where the arc length of each segment is proportional to the quantity it represents.
They are compact and can look very aesthetically pleasing, but they have been criticized as they can be hard to compare. Another property of pie charts that does not work in their best interest is that pie charts are presented in a specific angle (perspective) and segments use certain colors that can skew our perception and influence our conclusion about information presented.
What we will show here is different ways to use pie charts to present ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access