ChartDirector 6.0 (C++ Edition)

ViewPortManager.getViewPortAtValue


Usage

double getViewPortAtValue(const char *id, double value, bool isLogScale = false);

Description

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

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

Arguments

ArgumentDefaultDescription
id(Mandatory)The name of the data scale.
value(Mandatory)The value to be converted.
isLogScalefalsetrue if the conversion is based on a logarithmic scale. false if the conversion is based on a non-logarithmic scale.

Return Value

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