ChartDirector 7.1 (.NET Edition)

RazorChartViewer.getValueAtViewPort


Usage

[C#]public double getValueAtViewPort(string id, double vpCoor [, bool isLogScale ]);
[VB]Public Function getValueAtViewPort(id As String, vpCoor As Double [, isLogScale As Boolean ]) As Double

Description

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

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

This method always returns a numeric value. If the axis scale is a date/time scale, and you are expecting a DateTime data type, please use Chart.NTime to convert the number to the DateTime data type.

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.