ChartDirector 6.2 (.NET Edition)

RazorChartViewer.getViewPortAtValue


Usage

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

Description

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

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

This method only accepts numeric values as input. If the axis scale is a date/time scale, and you are using a DateTime value, please use Chart.CTime to convert it to a number.

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.