Chart Drops Bar Labels

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
EdDressel
Newbie
Newbie
Posts: 32
Joined: Mon Dec 10, 2018 12:00 am

Chart Drops Bar Labels

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:

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
Thanks,

Ed Dressel

Yeray
Site Admin
Site Admin
Posts: 8853
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart Drops Bar Labels

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.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

EdDressel
Newbie
Newbie
Posts: 32
Joined: Mon Dec 10, 2018 12:00 am

Re: Chart Drops Bar Labels

Post by EdDressel » Thu Oct 17, 2019 1:18 pm

A demo is attached.
Attachments
Marks too wide.zip
(6.95 KiB) Downloaded 89 times
Thanks,

Ed Dressel

Yeray
Site Admin
Site Admin
Posts: 8853
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Chart Drops Bar Labels

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
Project2_2019-10-21_12-28-40.png (9.78 KiB) Viewed 2432 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply