O1LabelAutofit

This property is used to automatically fit or size all text labels on the primary ordinal (O1) axis.

Syntax:

setO1LabelAutofit(boolean);
boolean = getO1LabelAutofit();

where:

boolean

Can be one of the following:

true automatically fits and sizes labels on the O1-axis using TextAutofitMax and TextAutofitMin. The font size of these objects cannot be changed to a size that is larger than the relative location or size of the object and objects around it. This value is the default.

false does not automatically fit and size labels. The font size can be set to any value, allowing very large font sizes to overlap other objects in the graph.

Example:

setDepthRadius(0);
setFontSize(getO1Label(),6);  setO1LabelAutofit(true);

bar graph

setO1LabelAutofit(false);

bar graph

Note: Labels can overlap each other when the font size is too large and O1LabelAutofit is disabled. If you want to use a larger font size but do not want the labels to overlap, use O1LabelRotate, O1LabelStagger, or O1LabelWrap to change the labels so that they don't overlap.

See O1LabelDisplay, O1LabelRotate, O1LabelStagger, O1LabelWrap.


WebFOCUS