O'Reilly logo

Beginning JavaScript Charts: With jqPlot, d3, and Highcharts by Fabio Nelli

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required