Adjusting Legend Symbol Height

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
SDE
Newbie
Newbie
Posts: 18
Joined: Thu Dec 20, 2012 12:00 am

Adjusting Legend Symbol Height

Post by SDE » Fri Mar 14, 2014 9:27 pm

Hi,

I am using your latest version of TChartPro with Embarcadero Delphi XE5.

I was wondering if you could tell me how I can change my symbol size in my chart legend without changing the font size in the legend.

In the chart editor, under Series-->Format-->Size I have the ability to change the size of my symbol by either changing the Size parameter (adjust the size of the entire symbol) or individually adjust the width or height.

I need to have the same ability for the symbol in my legend. Currently in Chart--> Legend--> Symbols --> Options, I see that I can change the width of the symbol. But there is no parameter to change the height. The height seems to only be changeable by changing the font size in the legend. But I want my font size to stay fixed and make only my legend symbol smaller. Is there any way I can do that? I tried adjusting the width and then selecting "sqaured" but that did not work. I would appreciate any information you could provide me on this, especially on the corresponding data structures for the associated TChart if such a height property exists.

If it matters, I am using GDI and not GDI+.

Thanks!
SDE

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

Re: Adjusting Legend Symbol Height

Post by Yeray » Mon Mar 17, 2014 2:57 pm

Hi SDE,

I've added it to the wish list to be implemented in future releases
http://bugs.teechart.net/show_bug.cgi?id=642
Feel free to add your mail account to the CC list so you can be automatically notified when an update arrives.
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

SDE
Newbie
Newbie
Posts: 18
Joined: Thu Dec 20, 2012 12:00 am

Re: Adjusting Legend Symbol Height

Post by SDE » Tue Mar 18, 2014 4:26 pm

Hi Yeray,

Thanks for adding it to the wish list! In your notes I noticed that you said "This height would only be applied when the height specified here is bigger than the font size," but actually that is kind of the opposite of what I need. The reason why I was really asking was to use this as a workaround for something that has changed in your most recent releases.

It used to be that if I had my series height size set to anything that had a smaller height than my font size, in my legend, the symbol size matched the series size up to the height of my font. If the series height was larger than the font height, the symbol height in the legend matched the font size. For example, if the font size of 8 is equivalent to a symbol height of 3, I would get the following:

Series Height:Legend Font size:Legend Symbol Height:
1:8:1
2:8:2
3:8:3
4:8:3
5:8:3

Now, no matter what the series size is, the legend symbol height always matches the Legend font size. So now it is the following:

Series Height:Legend Font size:Legend Symbol Height:
1:8:3
2:8:3
3:8:3
4:8:3
5:8:3

I don't like how this looks on my legend. To get around it, I wanted to the ability to manually change the symbol height to be smaller than the legend font height so that it would match my series size.

Do you happen to know why there was this change? Or if you will ever return to how it used to be charted?

Thanks!
SDE

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

Re: Adjusting Legend Symbol Height

Post by Yeray » Wed Mar 19, 2014 2:41 pm

Hi SDE,

I've added another comment into the ticket description.
http://bugs.teechart.net/show_bug.cgi?id=642
Feel free to add a comment there if you think it isn't precise or complete enough.
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

SDE
Newbie
Newbie
Posts: 18
Joined: Thu Dec 20, 2012 12:00 am

Re: Adjusting Legend Symbol Height

Post by SDE » Thu Mar 20, 2014 2:47 pm

Thanks, Yeray! Looks like David already added the height properties, which will be very helpful.

Post Reply