Vertical Scroll bar for Top and Bottom Legends?

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Petex
Newbie
Newbie
Posts: 2
Joined: Mon Jun 28, 2010 12:00 am

Vertical Scroll bar for Top and Bottom Legends?

Post by Petex » Wed Jul 14, 2010 3:45 pm

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.

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

Re: Vertical Scroll bar for Top and Bottom Legends?

Post by Yeray » Thu Jul 15, 2010 10:26 am

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;
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

Petex
Newbie
Newbie
Posts: 2
Joined: Mon Jun 28, 2010 12:00 am

Re: Vertical Scroll bar for Top and Bottom Legends?

Post by Petex » Thu Jul 15, 2010 2:46 pm

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?

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

Re: Vertical Scroll bar for Top and Bottom Legends?

Post by Yeray » Fri Jul 16, 2010 10:29 am

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