iOS MonoTouch and Legend Sizing

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
BobReck
Newbie
Newbie
Posts: 16
Joined: Tue Apr 24, 2012 12:00 am

iOS MonoTouch and Legend Sizing

Post by BobReck » Mon Jun 04, 2012 2:17 pm

Hey folks,
I was wondering if anyone can point me in the right direction with this problem I am having. I am using TeeChart for MonoTouch and I have a line chart with the legend at the bottom. The following code is all the lines that currently define and format the legend.

Code: Select all

			
 //Setup the chart legend on the bottom of the graph.
 _chart.Legend.Visible = true;
 _chart.Legend.LegendStyle = LegendStyles.Series;
 _chart.Legend.Alignment = LegendAlignments.Bottom;
 _chart.Legend.AutoSize = true;
 _chart.Legend.HorizMargin = 15;
 _chart.Legend.Width = 600;
The legend is created and looks pretty good. However, the last item in the list always seems to run over the end of the legend box.

Image

I have tried everything I can think of and just can't get the box to become any bigger. I've tried turning off autosize, setting the width bigger, etc.

Can you help? What am I doing wrong or not doing at all to make this size correctly?
Thanks!
Bob

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

Re: iOS MonoTouch and Legend Sizing

Post by Sandra » Tue Jun 05, 2012 3:46 pm

Hello Bob,

We haven't forgotten you, we are investigating your problem and we try to answer you asap.

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

BobReck
Newbie
Newbie
Posts: 16
Joined: Tue Apr 24, 2012 12:00 am

Re: iOS MonoTouch and Legend Sizing

Post by BobReck » Tue Jun 05, 2012 4:13 pm

OK, no problem. Thanks Sandra.

I'm posting an additional question in another topic.
Bob

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

Re: iOS MonoTouch and Legend Sizing

Post by Sandra » Wed Jun 06, 2012 10:14 am

Hello BobReck,

After do some tests, I inform you that we consider it problem as a bug and we have added it in bug list report with number [TM71016212]. We will try to fix it for next maintenance releases of TeeChart.Net MonoTouch.

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

BobReck
Newbie
Newbie
Posts: 16
Joined: Tue Apr 24, 2012 12:00 am

Re: iOS MonoTouch and Legend Sizing

Post by BobReck » Wed Jun 06, 2012 12:03 pm

Thank you Sandra. While you are fixing that, could you please look at the following items too?

Chart Title
Left Axis Title
Right Axis Title

I have each set to be centered, however they are not centered. They are all to the right of where they should be (if looking at them rotated to the proper orientation). Looks like the legend is also slightly off center.

Here's my example chart:
Image

Code: Select all

_chart.Header.TextAlign = MonoTouch.CoreText.CTTextAlignment.Center;
_chart.Axes.Left.Title.TextAlign = MonoTouch.CoreText.CTTextAlignment.Center;
_chart.Axes.Right.Title.TextAlign = MonoTouch.CoreText.CTTextAlignment.Center;
Thanks!
Bob

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: iOS MonoTouch and Legend Sizing

Post by Pep » Thu Jun 07, 2012 5:27 pm

Hello Bob,

yes, you're correct about this bugs. I've been fixing here them. I've almost finished with them. Once I finish we'll send the new dll, so you can test it, also we'll post a new maintenance release on our web site.
I'll advise asap.

BobReck
Newbie
Newbie
Posts: 16
Joined: Tue Apr 24, 2012 12:00 am

Re: iOS MonoTouch and Legend Sizing

Post by BobReck » Thu Jun 07, 2012 5:47 pm

Pep,
You rock! Thanks!
Bob

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

Re: iOS MonoTouch and Legend Sizing

Post by Sandra » Mon Jun 11, 2012 2:08 pm

Hello Bob,

I inform you that we have published a new maintenace release of TeeChart for .NET 2012 Mono Chart Library for iOS released where we fixed your problems, please update your version and check the fixes.

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

BobReck
Newbie
Newbie
Posts: 16
Joined: Tue Apr 24, 2012 12:00 am

Re: iOS MonoTouch and Legend Sizing

Post by BobReck » Mon Jun 11, 2012 2:49 pm

Ok guys,

Legend problem - Fixed! :D
Left axis title centering - Fixed! :D
Right axis title centering - not fixed. :( (looks centered to chart rectangle area, not to the actual chart axis)
Top title centering - not fixed. :(

Here's an example with the new DLL.
Thanks,
Bob

Image

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: iOS MonoTouch and Legend Sizing

Post by Pep » Mon Jun 11, 2012 3:57 pm

Hi Bob,

ok, I'm going to review it again and fix, I'll advise.

BobReck
Newbie
Newbie
Posts: 16
Joined: Tue Apr 24, 2012 12:00 am

Re: iOS MonoTouch and Legend Sizing

Post by BobReck » Mon Jun 18, 2012 3:41 pm

Pep wrote:Hi Bob,

ok, I'm going to review it again and fix, I'll advise.
Hi Josep,

Just checking in. Any good news for me? :D

Thanks so much for your continued support!
Bob

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: iOS MonoTouch and Legend Sizing

Post by Pep » Mon Jun 18, 2012 3:52 pm

Hi Bob,

of course !. just finishing the fixes. If nothing changes, tomorrow will send the new dll to you.

Thanks and sorry for the delay!

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: iOS MonoTouch and Legend Sizing

Post by Pep » Wed Jun 20, 2012 10:21 am

Hi Rob,

we've sent a new dll directly to you mail which includes the fixes. Please check if it's working fine for you, and let us know in the case you find something still not working.
Thanks for the advises helping to improve the product !

BobReck
Newbie
Newbie
Posts: 16
Joined: Tue Apr 24, 2012 12:00 am

Re: iOS MonoTouch and Legend Sizing

Post by BobReck » Fri Jun 22, 2012 5:39 pm

This is a great update! The left and right axis labels are now properly centered. The title is too.

Also, thanks to Sandra, I found that my problem with the legend not being centered was that I wasn't setting Legend.TopLeftPos = 0.

Thanks guys! :D
Bob

Post Reply