Page 1 of 1

Chart Drops Bar Labels

Posted: Thu Oct 17, 2019 12:50 am
by 16585021
In the image below, labels ("A") are being dropped because the chart is not wide enough. I have a couple of questions:

Image

1) I remember there is a margin setting somewhere that increases the likelihood that they will be drawn (years ago support told me about it). Do you know what that is?

2) Also, is there any way to reduce the amount of space on the left and right ("B")? I would think would increase the chances of the labels being included, right?

Thank you

Ed Dressel

Re: Chart Drops Bar Labels

Posted: Thu Oct 17, 2019 8:29 am
by yeray
Hello,

It would be helpful if you could post the code to generate the chart you are showing us so we can reproduce the situation as-is.

Re: Chart Drops Bar Labels

Posted: Thu Oct 17, 2019 1:18 pm
by 16585021
A demo is attached.

Re: Chart Drops Bar Labels

Posted: Mon Oct 21, 2019 10:29 am
by yeray
Hello,
EdDressel wrote:
Thu Oct 17, 2019 12:50 am
1) I remember there is a margin setting somewhere that increases the likelihood that they will be drawn (years ago support told me about it). Do you know what that is?
Indeed setting thinner bars seems to help:

Code: Select all

  for i:=0 to chrRothConvert.SeriesCount-1 do
    TBarSeries(chrRothConvert[i]).BarWidthPercent:=50;
EdDressel wrote:
Thu Oct 17, 2019 12:50 am
2) Also, is there any way to reduce the amount of space on the left and right ("B")? I would think would increase the chances of the labels being included, right?
In your dfm I see you've set the bottom axis MinimumOffset and MaximumOffset to 48. Removing that reduces that space and you don't even need to set the BarWidthPercent to 50 to see all the labels:
Project2_2019-10-21_12-28-40.png
Project2_2019-10-21_12-28-40.png (9.78 KiB) Viewed 2429 times