DataLab is a compact statistics package aiming at exploratory data analysis. Please visit the DataLab Web site for more information....


AutoRangeXOnly

Declaration: ChartBook.Charts[].AutoRangeXOnly(Layer: integer; Margin: double);
The method AutoRangeXOnly adjusts the x-axis in such a way that all x-coordinates of all graphics elements of the layer specified by the parameter Layer fall within the range of the x-axis. If Layer is zero, all layers are affected by the method, setting the x-axis of each layer to its optimum range. The parameter Margin specifies an optional margin (given in a percentage of the axis). Values between 2 and 5 percent usually deliver good results.

Please note that the width of lines, elements with relative pixel coordinates (such as DrawToRelPix) and the size of text elements are not included in the autoranging calculations. This implies that lines having a width greater than 1 may be only partially displayed. The same is true for texts which may be only partially shown since the text reference point depends on the text alignment.

The property Isometric is automatically set to FALSE whenever AutoRangeXOnly is called.