Report 2: Pie Chart

This second report will be a pie chart display of sales by division. Obviously, this type of display best lends itself to displaying a limited number of values, normally between 2 and 15. A pie chart that attempts to show more than that becomes too fragmented to show anything but the largest slices, if the data breaks out as such. Figure 12.3 shows Glade highlighting the DrawingArea widget, which will be used extensively in the next three reports. Listing 12.6 is the code for the pie chart report.

Figure 12.3. The pie chart project is under construction with Glade; the DrawingArea widget is highlighted in the palette.

Get MySQL Building User Interfaces now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.