TChartAxis.CalcXYIncrement

TChartAxis.CalcXYIncrement
TChartAxis

function CalcXYIncrement(MaxLabelSize: Integer): Double;

Unit
TeEngine

Description
The CalcXYIncrement function returns the distance between axis labels expressed in axis scales.

This function applies to both Chart BottomAxis and TopAxis axis components.

Basically this function calculates the most appropiate Increment to make Axis labels t overlapping/font>

The TChartAxis.Increment property is used as a first increment to try. If Labels will overlap, a new and bigger increment is applied until labels fit on axis dimensions.

The TChartAxis.LabelsSeparation controls the minimum amount of allowed distance between axis labels.

This function is called internally so you'll need to use in very special situations.