Page 1 of 1
Vertical Scroll bar for Top and Bottom Legends?
Posted: Wed Jul 14, 2010 3:45 pm
by 15656479
When the alignment of the Legend is Top or Bottom, the LegendScrollBar appears horizontally at the bottom of the Legend. Is it possible to align the LegendScrollBar so that it is vertical rather than horizontal please?
A similar post was made in the Active X forum on Thursday 20th Jul 2006.
Re: Vertical Scroll bar for Top and Bottom Legends?
Posted: Thu Jul 15, 2010 10:26 am
by yeray
Hi Petex,
I'm afraid we haven't implemented this yet (TV52011935).
However, you could play with CustomPosition and the Alignment to get the legend as you want, isn't it?
For example:
Code: Select all
//Horizontal LegendScrollBar
tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Top;
tChart1.Legend.CustomPosition = true;
tChart1.Legend.Left = 100;
tChart1.Legend.Top = 50;
Code: Select all
//Vertical LegendScrollBar
tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Left;
tChart1.Legend.CustomPosition = true;
tChart1.Legend.Left = 100;
tChart1.Legend.Top = 50;
Re: Vertical Scroll bar for Top and Bottom Legends?
Posted: Thu Jul 15, 2010 2:46 pm
by 15656479
Thank you for your reply.
The suggestion to use custom positioning with a left aligned legend is an obvious way to go. However, for this to be useful a way is needed to control the height of the legend. The code
tChart1.Legend.Height = 100
seems to make no difference and if there are a large number of series the left aligned legend fills the plot area.
So my question now has become:
is there a way to control the legend number of rows displayed and/or height when under LEFT alignment please?
Re: Vertical Scroll bar for Top and Bottom Legends?
Posted: Fri Jul 16, 2010 10:29 am
by yeray
Hi Petex,
I'm afraid it's not possible right now. But you always can do it by yourself. As a start point you could use the custom legend proposed by Christopher,
here