Legend and series groups

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
stsl
Newbie
Newbie
Posts: 45
Joined: Thu Jun 21, 2007 12:00 am

Legend and series groups

Post by stsl » Mon Apr 06, 2009 1:44 pm

Hi,

When i choose the lsGroups option in a legend, the text (groups name) is aligned on the right side and not on on the left side of the legend !!! And there is no margin between the text and the right side of the legend (and it not possible to draw a custom symbol).

Is it normal or did i misunderstand something ?

Regards

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

Post by Yeray » Mon Apr 06, 2009 2:37 pm

Hi stsl,

The legend always aligns the text to the right, but your are right, setting the LegendStyle as lsSeriesGroups, there is no margin. I've added it to the wish list too (TV52014061).
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

stsl
Newbie
Newbie
Posts: 45
Joined: Thu Jun 21, 2007 12:00 am

Post by stsl » Mon Apr 06, 2009 3:05 pm

You add the margin problem or the alignment problem in your wish list ?
Could you explain your aligment logic ? Why the series name are "left aligned" and the groups name are "right aligned" ? You know, i have to give some explanation to my customers...

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

Post by Yeray » Tue Apr 07, 2009 8:51 am

Hi stsl,

I considered the margin issue as a bug, not the alignment one.

I've investigated further and that's the result: The legend aligns the items depending on the property Legend.TextStyle. The styles considered as text, will be aligned to the left and the styles considered as numbers will be aligned to the right.

So, when you show series groups, you could do the following to force the legend to display it with the text format:

Code: Select all

Chart1.Legend.TextStyle := ltsPlain;
I hope this helps.
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

stsl
Newbie
Newbie
Posts: 45
Joined: Thu Jun 21, 2007 12:00 am

Post by stsl » Tue Apr 07, 2009 10:56 am

Thanks, it works properly

Post Reply