CHAPTER 6

image

Drawing a Pie Chart

Similar to what you have done in the last two chapters, in this chapter, you will learn to build a pie chart, using the data contained in your HTML table.

Starting from the point at which you parsed all the data (see Chapter 3), you will discover how to implement this interesting kind of object and explore how to create your first animations.

Drawing a Pie Chart

This type of chart is quite different from the previous two (line and bar charts). It consists of a circle (a pie) that represents the sum of all the values (see Figure 6-1). This pie is divided into slices of different colors, one for each series present ...

Get Beginning JavaScript Charts: With jqPlot, d3, and Highcharts 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.