Plotting simple pie charts – single series
In this chapter, we are going to use video gaming data supplied by vgchartz (www.vgchartz.com). The following is the pie chart configuration, and the data is the number of games sold in 2011 according to publishers, based on the top 100 games sold. Wii Sports is taken out of the dataset because it is free with the Wii console:
chart: { renderTo: 'container', type: 'pie', borderWidth: 1, borderRadius: 5 }, title: { text: 'Number of Software Games Sold in 2011 Grouped by Publishers', }, credits: { ... }, series: [{ data: [ [ 'Nintendo', 54030288 ], [ 'Electronic Arts', 31367739 ], ... ] }]
Here is a simple pie chart screenshot with the first data point (Nintendo) starting at the 12 o'clock position. The first slice always starts at the 12 o'clock position unless we specify a different start point with the startAngle
option...