Y2ZeroLineDisplay

This property enables or disables drawing of the zero line on the Y2-axis when zero is within the Y2 axis scale range.

Syntax:

setY2ZeroLineDisplay(boolean);
boolean = getY2ZeroLineDisplay();

where:

boolean

Can be one of the following:

true draws zero line on Y2-axis.

false does not draw zero line. This value is the default.

Example:

setDepthAngle(0);
setDepthRadius(0);
setGraphType(21);
setAxisAssignment(0,1);
setY2TitleString("Y2 Axis");
setY1TitleString("Y1 Axis");  setY2ZeroLineDisplay(true);
setLineWidth(getY2ZeroLine(), 5);
setFillColor(getY2ZeroLine(), new Color(255,0,0));

bi-polar bar graph

Note: To increase the width of the zero line, use the getY2ZeroLine() method to get the object ID of the line and the setLineWidth() method to specify the width of the line (in pixels).


WebFOCUS