ChartDirector 6.0 (ASP/COM/VB Edition)

WebChartViewer.getValueAtViewPort


Usage

getValueAtViewPort(id, vpCoor [, isLogScale ])

Description

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

Please refer to WebChartViewer.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 Date data type, please use ChartDirector.API.NTime to convert the number to the Date data type.

Arguments

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

Return Value

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