TChart height shrinking with increase in legends at Bottom

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
HoneywellSteema
Newbie
Newbie
Posts: 12
Joined: Wed Aug 22, 2012 12:00 am

TChart height shrinking with increase in legends at Bottom

Post by HoneywellSteema » Mon Jan 21, 2013 7:43 am

Hi,

We are usging the TChart(4.0.2009.42283) in our Silverlight applications for one of the Products of Honeywell.We are having many line serieses added to the chart and also the series title will be shown in the legends.If the legend alignment is configured to be Top OR Bottom and serieses are added dyanamically at runtime then TChart height goes on shriking, since more and more legends come in Top OR Bottom and at one point the height becomes so small that user will not be able to see the graph properly.

To get around this problem i tried adding the "Steema.TeeChart.Silverlight.Tools.LegendScrollBar" tool so that i can scroll the legends vertically.But the scrollbar is coming only horizontally for Top and Bottom aligned legends.

To reproduce the problem i have created the sample Silverlight application.In the sample application i am not providing the option of adding serieses dynamically at runtime,hence you may need to run the application multiple times(with more and more number of serieses added at each iteration) to reproduce the issue.The default number of serieses is ten in the sample application.

Note:I am not able to attache the file here in this post as it is saying the file size is too large,hence please provide your email id so that i can send it.

Please let me know how can i have the vertical scroll bar for the Top and Bottom aligned legends.

Thanks and Regards,
Vishwanath K

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart height shrinking with increase in legends at Bottom

Post by Sandra » Mon Jan 21, 2013 1:01 pm

Hello Vishwanath K,
Note:I am not able to attache the file here in this post as it is saying the file size is too large,hence please provide your email id so that i can send it.
If you want attach a project with a size too large you can upload your project to our server in the upload page.

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HoneywellSteema
Newbie
Newbie
Posts: 12
Joined: Wed Aug 22, 2012 12:00 am

Re: TChart height shrinking with increase in legends at Bottom

Post by HoneywellSteema » Mon Jan 21, 2013 1:11 pm

Hi Sandra,

I have tried opening the below link for upload ,but unfortunately Honeywell policy is restricting the access to the below link. Hence can i send it to the Pro-Support mail id?,since earlier i communicated with one of the support persons through mail communication with this email id.

Thanks and Regards,
Vishwanath K

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TChart height shrinking with increase in legends at Bottom

Post by Narcís » Mon Jan 21, 2013 2:17 pm

Hi Vishwanath,

First of all please notice that I edited your message to remove the Pro-Support email address you had disclosed. This is not a public email address and standard support channel but a resource only available to Pro-Support subscribers.

Back to your question, yes, since you hold an active Pro-Support subscription you can use this email address. Please include a reference to this thread in your email.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

HoneywellSteema
Newbie
Newbie
Posts: 12
Joined: Wed Aug 22, 2012 12:00 am

Re: TChart height shrinking with increase in legends at Bottom

Post by HoneywellSteema » Tue Jan 22, 2013 2:10 pm

Hi Narcis/Sandra,

Please let me know your inputs on the below issue,since this is one of the user visibility issues that we need to resolve.

Thanks and Regards,
Vishwanath K

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: TChart height shrinking with increase in legends at Bottom

Post by Narcís » Wed Jan 23, 2013 10:06 am

Hi Vishwanath,

Did you send any project to the pro-support email address? We haven't received any. If you did so you could try sending it to the alternative GMail account as explained in the pro-support subscription email you should have received.

Thanks in advance.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: TChart height shrinking with increase in legends at Bottom

Post by Sandra » Wed Jan 23, 2013 10:31 am

Hello Vishwanath,

On the other hand,You must know that if you have the legend alignment in bottom or top, ScrollBar tool is aligned in bottom or top and isn't possible have a scroll bar in vertical position when the legend is horizontal. If you don't want that legend increase when you add Series dinamically, you need define the number of rows you want visible and use scroll bar to see all series as do in next code:

Code: Select all

 private void InitializeChart()
        {
            tChart1.Aspect.View3D = false;
            for (int i = 0; i < 50; i++)
            {
                new Steema.TeeChart.Silverlight.Styles.Line(tChart1.Chart);
                tChart1[i].FillSampleValues(100);
               
            }
            Steema.TeeChart.Silverlight.Tools.LegendScrollBar scrolllegend1 = new Steema.TeeChart.Silverlight.Tools.LegendScrollBar(tChart1.Chart);
            tChart1.Legend.Alignment = Steema.TeeChart.Silverlight.LegendAlignments.Bottom;
            tChart1.Legend.MaxNumRows = 2;
}
Could you tell us if previous code works as you want?

Thanks,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply