Labels dropped in THorizBarSeries series
Posted: Mon Dec 01, 2008 6:51 pm
I am using 8.02 (I think--I just saw that 8.04 is available).
In a TChart with a single THorizBarSeries the label for a value in the series is dropped even when there is plenty of room for the label to be shown.
For example, here is an image full size (highlighting the labels that will be dropped in the next image):
If the image is re-sized down a little, two labels are dropped (but again, there is plenty of room for them):
I do set the THorizBarSeries.BarWidthPercent = 60. Increasing this (I even tried 100) did not fix the problem.
Here is the code for creating the series:
function CreateBarSeries: THorizBarSeries;
begin
result := THorizBarSeries.Create(self);
result.Marks.Visible := True;
result.BarWidthPercent := 60;
result.ColorEachPoint := True;
result.OnGetMarkText := GetMarkText;
result.MultiBar := mbSide;
result.BarPen.Visible := False;
chrtAvgValues.AddSeries(result);
end;
Thank you,
Ed Dressel
In a TChart with a single THorizBarSeries the label for a value in the series is dropped even when there is plenty of room for the label to be shown.
For example, here is an image full size (highlighting the labels that will be dropped in the next image):
If the image is re-sized down a little, two labels are dropped (but again, there is plenty of room for them):
I do set the THorizBarSeries.BarWidthPercent = 60. Increasing this (I even tried 100) did not fix the problem.
Here is the code for creating the series:
function CreateBarSeries: THorizBarSeries;
begin
result := THorizBarSeries.Create(self);
result.Marks.Visible := True;
result.BarWidthPercent := 60;
result.ColorEachPoint := True;
result.OnGetMarkText := GetMarkText;
result.MultiBar := mbSide;
result.BarPen.Visible := False;
chrtAvgValues.AddSeries(result);
end;
Thank you,
Ed Dressel