ChartDirector 7.1 (C++ Edition)

ViewPortManager.setFullRange


Usage

void setFullRange(const char *id, double minValue, double maxValue);

Description

Defines the full range of a viewport data scale.

In the ChartDirector zooming and scrolling framework, the viewport coordinates are expressed as the visible fractions of the "full data scale". For example, if the "full data scale" is 10 years horizontally, a viewport width of 0.1 means that 1 year of data are visible.

The setFullRange method defines the full range of a data scale and gives it a name. As ChartDirector supports multiple x-axes and y-axes, so there can be multiple data scales with different names. The name can be used in other ChartDirector APIs to convert between the viewport coordinates and data scale (see ViewPortManager.getValueAtViewPort, ViewPortManager.getViewPortAtValue), and to configure an Axis to reflect the visible data scale (see ViewPortManager.syncLinearAxisWithViewPort, ViewPortManager.syncLogAxisWithViewPort and ViewPortManager.syncDateAxisWithViewPort).

Arguments

ArgumentDefaultDescription
id(Mandatory)The name of the data scale.
minValue(Mandatory)The minimum value of the data scale.
maxValue(Mandatory)The maximum value of the data scale.

Return Value

None