Chapter 4. Pie and Donut Charts
A great visual metaphor for representing structure is the pie chart. We divide it into slices and examine who got the largest piece, or, for example, how market players split half of the market between them. The emphasis is not on quantitative comparison (bigger or smaller), as with bar charts, but on the part of the whole (percentages).
A donut chart serves the same purpose as a pie chart, built with the same parameters, with the only difference being the hole (or properly termed, the “donut hole”) in the center (Figure 4-1, right). In this chapter, we will provide you with a guide for a pie chart, but you can configure a donut chart in the same way.
Figure 4-1. Pie chart (left) and donut chart (right)
What purpose does the hole serve? Nothing special. We can put the total value there, but there is no such standard option. We can get this result combining two visuals: donut chart and card with total value (Figure 4-2). But let’s not complicate things for now and instead understand the basic setting.
Figure 4-2. Donut chart with total sales in the center
We remind you that the practice dataset is utilized for all the chapters in this part, allowing you to build the final dashboard. You can continue practicing with your file from the previous chapter. ...
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