appendix C Other chart types
This appendix describes some of the most popular charts not covered in chapter 6. Use it as a reference if you want to try new charts. The code for the charts is described in the book’s GitHub repository, under 06, in addition to other, less popular charts. Let’s investigate each chart type separately, starting with the cooking chart family.
C.1 Donut chart
A donut chart is a type of circular data visualization that displays data in a ring shape. It is similar to the pie chart but with a hole in the center, creating a visual representation of proportions or percentages of different categories.
To convert a pie chart into a donut chart, simply add the innerRadius
and outerRadius
properties to the mark_arc() ...
Get Data Storytelling with Altair and AI now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.