ChartDirector Ver 3.0 (C++ Edition)

Layer.getYCoor


Usage

int getYCoor(double v, bool yAxis = true) const;

Description

Get the y coordinate of a point given the y value.

Note that you must call BaseChart.layout first before calling this method. It is because ChartDirector needs to perform auto-scaling and/or confirm the axis scale first before it can compute the coordinates.

Arguments

ArgumentDefaultDescription
v(Mandatory)The y value.
yAxistrueA true value means using the primary y-axis to compute the coordinate. A false value means using the secondary y-axis to compute the coordinate.

Return Value

The y coordinate of the y value.