ChartDirector 7.0 (ASP/COM/VB Edition)

WebChartViewer.setFullRange


Usage

setFullRange(id, minValue, 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 WebChartViewer.getValueAtViewPort, WebChartViewer.getViewPortAtValue), and to configure an Axis to reflect the visible data scale (see WebChartViewer.syncLinearAxisWithViewPort, WebChartViewer.syncLogAxisWithViewPort and WebChartViewer.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