A combination graph uses different types of data markers to display different series of data.
The Java-client and HTML-client user interface for changing the graph type
presents combination graphs as a separate graph type. However, the Graph bean
API does not have separate constants for combination graphs. The combination
graphs that are exposed in the user interface are bar graphs in which the Series.getMarkerType
for any series returns a value other than BaseGraphComponent.MT_DEFAULT
.
In the API, you can also start with a line graph or an area graph and set the
MarkerType
property of any series to a value other than MT_DEFAULT
.
Use combination graphs to clarify or emphasize relationships among data series.
The MarkerType
property of a Series
determines the
type of data marker that represents the series. Valid values of the MarkerType
property are:
BaseGraphComponent.MT_DEFAULT
-- Use the marker that is the
default for the base graph type. For example, if you start with a bar graph,
a series that uses MT_DEFAULT
appears as a series of bars.
BaseGraphComponent.MT_BAR
-- Use bars to represent the series.
BaseGraphComponent.MT_AREA
-- Use an area marker to represent
the series.
BaseGraphComponent.MT_LINE
-- Use a line to represent the
series.
You can have a single-Y combination graph or a dual-Y combination graph.
The DepthRadius
and DepthAngle
properties of the
Graph
object together specify whether a combination graph appears
to have depth.
The data structure of a combination graph is the same as for bar, line, and area graphs.
Combination graph data has the following requirements:
Graphs display numeric data only.
Combination graphs require at least two series of data. Otherwise, the graph cannot show different marker types.
Combination graphs require at least two groups of data. Otherwise, the graph cannot draw a line or an area marker.
Time axis data must be regular, complete, and in ascending order. If it is not, then the graph displays a regular ordinal axis rather than a time axis.
Handling Problems
in Graph Data
Specifying Data for a Graph
Example: Setting JDBC Data on
a Simple Graph
Example: Setting Data from a
File on a Simple Graph