ChartDirector 5.1 (PHP Edition)

JsChartViewer.getViewPortAtValue


Usage

getViewPortAtValue(id, value [, isLogScale ])

Description

Converts a value of the specified data scale to a view port coordinate.

Please refer to WebChartViewer.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.
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 view port coordinate at the value of the specified data scale.