Graphs have two or three axes. You specify the axes' properties in the Axis page in the graph's Properties view.
To specify properties for an axis of a graph:
Select Properties from the graph's pop-up menu and then select the Axis page in the Properties view.
Select the Category, the Value, or the Series axis from the Axis drop-down list.
If you are not working with a 3D graph, the Series Axis options are disabled.
Specify the properties as described next.
You can specify the characteristics of the text that displays for each axis. Table 24-9 shows the two kinds of text associated with an axis.
For information on specifying properties for the text, see “Specifying text properties for titles, labels, axes, and legends”.
The data graphed along the Value, Category, and Series axes has an assigned datatype. The Series axis always has the datatype String. The Value and Category axes can have the datatypes listed in Table 24-10.
For graphs in DataWindow objects, PocketBuilder automatically assigns the datatypes based on the datatype of the corresponding column; you do not specify them.
For graphs in windows, you specify the datatypes yourself. Be sure you specify the appropriate datatypes so that when you populate the graph (using the AddData function), the data matches the datatype.
You can specify the properties listed in Table 24-11 to define the scaling used along numeric axes.
You can divide axes into divisions. Each division is identified by a tick mark, which is a short line that intersects an axis. In the Sales by Printer graphs shown in “Examples”, the graph's Value axis is divided into major divisions of 50 units each. PocketBuilder divides the axes automatically into major divisions.
To define divisions for an axis of a graph:
To divide an axis into a specific number of major divisions, type the number of divisions you want in the MajorDivisions box.
Leave the number 0 to have PocketBuilder automatically create divisions. PocketBuilder labels each tick mark in major divisions. If you do not want each tick mark labeled, enter a value in the DisplayEveryNLabels box. For example, if you enter 2, PocketBuilder labels every second tick mark for the major divisions.
To use minor divisions, which are divisions within each major division, type the appropriate number in the MinorDivisions box.
To use no minor divisions, leave the number 0.
You can specify lines to represent the divisions as described in Table 24-12 and illustrated in Figure 24-23.
Figure 24-23: Grid and drop lines in a graph
You can define line styles for the components of a graph listed in Table 24-13.
Copyright © 2004. Sybase Inc. All rights reserved. |
![]() |