Page 1 of 1

iOS MonoTouch and Legend Sizing

Posted: Mon Jun 04, 2012 2:17 pm
by 17262249
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

Re: iOS MonoTouch and Legend Sizing

Posted: Tue Jun 05, 2012 3:46 pm
by 10050769
Hello Bob,

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

Thanks,

Re: iOS MonoTouch and Legend Sizing

Posted: Tue Jun 05, 2012 4:13 pm
by 17262249
OK, no problem. Thanks Sandra.

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

Re: iOS MonoTouch and Legend Sizing

Posted: Wed Jun 06, 2012 10:14 am
by 10050769
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,

Re: iOS MonoTouch and Legend Sizing

Posted: Wed Jun 06, 2012 12:03 pm
by 17262249
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

Re: iOS MonoTouch and Legend Sizing

Posted: Thu Jun 07, 2012 5:27 pm
by Pep
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.

Re: iOS MonoTouch and Legend Sizing

Posted: Thu Jun 07, 2012 5:47 pm
by 17262249
Pep,
You rock! Thanks!
Bob

Re: iOS MonoTouch and Legend Sizing

Posted: Mon Jun 11, 2012 2:08 pm
by 10050769
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,

Re: iOS MonoTouch and Legend Sizing

Posted: Mon Jun 11, 2012 2:49 pm
by 17262249
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

Re: iOS MonoTouch and Legend Sizing

Posted: Mon Jun 11, 2012 3:57 pm
by Pep
Hi Bob,

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

Re: iOS MonoTouch and Legend Sizing

Posted: Mon Jun 18, 2012 3:41 pm
by 17262249
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

Re: iOS MonoTouch and Legend Sizing

Posted: Mon Jun 18, 2012 3:52 pm
by Pep
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!

Re: iOS MonoTouch and Legend Sizing

Posted: Wed Jun 20, 2012 10:21 am
by Pep
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 !

Re: iOS MonoTouch and Legend Sizing

Posted: Fri Jun 22, 2012 5:39 pm
by 17262249
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