Page 1 of 1

TChart height shrinking with increase in legends at Bottom

Posted: Mon Jan 21, 2013 7:43 am
by 16063283
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

Re: TChart height shrinking with increase in legends at Bottom

Posted: Mon Jan 21, 2013 1:01 pm
by 10050769
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,

Re: TChart height shrinking with increase in legends at Bottom

Posted: Mon Jan 21, 2013 1:11 pm
by 16063283
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

Re: TChart height shrinking with increase in legends at Bottom

Posted: Mon Jan 21, 2013 2:17 pm
by narcis
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.

Re: TChart height shrinking with increase in legends at Bottom

Posted: Tue Jan 22, 2013 2:10 pm
by 16063283
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

Re: TChart height shrinking with increase in legends at Bottom

Posted: Wed Jan 23, 2013 10:06 am
by narcis
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.

Re: TChart height shrinking with increase in legends at Bottom

Posted: Wed Jan 23, 2013 10:31 am
by 10050769
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,