ChartDirector 7.0 (Perl Edition)

MultiChart.setMainChart


Usage

setMainChart(c)

Description

Sets the chart that provides the plot area for plot area features.

Many ChartDirector features are related to the PlotArea of an XYChart. For example, in zooming support, ChartDirector allows the user to drag a rectangle over the plot area to select the part of the chart to zoom in. For track cursor support, the MouseMovePlotArea event is often used to update the cursor.

A MultiChart can include charts of different types and they can be at any arbitrary location. The setMainChart method can be used to specify which chart provides the plot area for plot area features.

A common usage of the MultiChart is for stacking up several XYCharts. In this case, the setMainChart can use the MultiChart itself as the argument. The effective plot area will then be the bounding box of the plot areas in all the charts.

Arguments

ArgumentDefaultDescription
c(Mandatory)The chart that defines the plot area for plot area features.

Return Value

None