December 2002
Intermediate to advanced
400 pages
9h 25m
English
The SimpleGraph class is used as a container for a report, regardless of the report's style. In this chapter, we will see how a 2D pie chart can be added into and displayed within its boundaries, and in Chapter 17, we will see how a 2D bar chart can be added to it. A SimpleGraph is really used to provide a consistent way of labeling charts and applying common font characteristics to text displayed on a graph. The {constructor} and class fields required to support this functionality are shown in Figure 15-2.
SimpleGraph inherits from the Curl system class BaseFrame, which is the base class for containers that contain one graphical child. We use the {…} rest argument definition in the {constructor} declaration, as this enables it to ...