Page 1 of 1
Legend and series groups
Posted: Mon Apr 06, 2009 1:44 pm
by 10545622
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
Posted: Mon Apr 06, 2009 2:37 pm
by yeray
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).
Posted: Mon Apr 06, 2009 3:05 pm
by 10545622
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...
Posted: Tue Apr 07, 2009 8:51 am
by yeray
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.
Posted: Tue Apr 07, 2009 10:56 am
by 10545622
Thanks, it works properly