Creating Charts Using the Chart Class

You can specify a rowset and have it graphed using a chart object with minimal PeopleCode. Within this rowset, one column must contain data for the x-axis and another column must contain data for the y-axis. If more than one series of data is used, an additional column is required for each series. You can also set color and data hint text for each point in this rowset using additional columns.

The following distinguishable types of data can be included in a chart:

  • Primary data.

  • Secondary data.

For a conceptual overview, a chart is easier to view in parts; however, these parts do not represent sub-objects. A chart contains the following major parts:

  • X-axis.

  • Y-axis.

  • Legend.

  • Data .

  • Title.

  • Subtitle.

  • Footnote

The x- and y-axes have access to titles and labels associated with their data.