TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
-
EdDressel
- Newbie

- Posts: 32
- Joined: Mon Dec 10, 2018 12:00 am
Post
by EdDressel » Thu Oct 17, 2019 12:50 am
In the image below, labels ("A") are being dropped because the chart is not wide enough. I have a couple of questions:
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
Thanks,
Ed Dressel
-
Yeray
- Site Admin

- Posts: 9644
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Thu Oct 17, 2019 8:29 am
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.
-
Yeray
- Site Admin

- Posts: 9644
- Joined: Tue Dec 05, 2006 12:00 am
- Location: Girona, Catalonia
-
Contact:
Post
by Yeray » Mon Oct 21, 2019 10:29 am
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 (9.78 KiB) Viewed 12482 times