
Two questions:
1) What setting is the margin between the labels? It seems a bit to aggressive here.
2) Is there a way of knowing if any of the labels are dropped? If they are, I want to change the value to a mark.
Thank you,
Ed Dressel
Code: Select all
Series1.Add(4,'first long long label');
Series1.Add(5,'second long long label');
Series1.Add(3,'third long long label');
Series1.Add(3.5,'fourth long long label');
Chart1.Axes.Bottom.LabelsSeparation := 0;
Code: Select all
Function TChartAxis.CalcXYIncrement(MaxLabelSize:Integer):TAxisValue;
var tmp : Integer;
begin
if (MaxLabelSize>0) and (IAxisSize>0) then
begin
if FLabels.Separation>0 then
Inc(MaxLabelSize,Round(0.01*FLabels.Separation*MaxLabelSize));
tmp:=Round((1.0*IAxisSize)/MaxLabelSize)
end
else tmp:=1;
result:=CalcLabelsIncrement(tmp)
end;