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

Get Enterprise Curl now with O’Reilly online learning.

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