ChartDirector 7.1 (C++ Edition)

ViewPortManager.getValueAtViewPort


Usage

double getValueAtViewPort(const char *id, double vpCoor, bool isLogScale = false);

Description

Converts a viewport coordinate to a value of the specified data scale.

Please refer to ViewPortManager.setFullRange on how to define a data scale.

Arguments

ArgumentDefaultDescription
id(Mandatory)The name of the data scale.
vpCoor(Mandatory)The viewport coordinate.
isLogScalefalsetrue if the conversion is based on a logarithmic scale. false if the conversion is based on a non-logarithmic scale.

Return Value

The value of the specified data scale at the viewport coordinate.