Fixed height and width

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Nick
Newbie
Newbie
Posts: 9
Joined: Wed May 14, 2008 12:00 am

Fixed height and width

Post by Nick » Thu Jun 26, 2008 1:24 pm

Hello,

I'm probably overlooking a property or something, but I've got a question about the height and width. I've set the height and width of a pie chart, for example, to 200. In some instances I have labels that are quite long. In these cases the pie dimensions seem to grow, but I need it stay constant. I would like the labels to be cut off or wrap. Is there an option for this?

Thanks for any help, I really appreciate it.

Thanks,
Nick

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

Post by Narcís » Thu Jun 26, 2008 1:48 pm

Hi Nick,

I'm sorry but I'm not sure about which is the exact problem here. Would you be so kind to give us some more details and a code snippet or simple example project we can run "as-is" to reproduce the problem here?

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

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

Nick
Newbie
Newbie
Posts: 9
Joined: Wed May 14, 2008 12:00 am

Post by Nick » Fri Jun 27, 2008 3:14 am

Hi Narcís,

I will upload a complete example when I get in to the office tomorrow morning. I wasn't very clear with what I was saying. Just for clarification a bit, I've got a pie chart (although I believe I'm seeing the same behavior for other chart types too) where I am setting the height and width:

tChart1.Width = 200;
tChart1.Height = 200;

I'm also setting the custom x & y radius:

series.CustomXRadius = 75;
series.CustomYRadius = 75;

The problem is that when I have a label that is really long:

series.Add(4000, "blah blah blah yackity smackity blah");
series.Add(1900, "other label");

And then I save the file:

tChart1.Export.Image.Metafile.Save(@"c:\test.emf");

The dimensions of the image are no longer 200 x 200. I would prefer that it try to wrap the labels or just cut them off. I hope that helps, but I will post a complete sample a little later.

Thanks,
Nick

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

Post by Narcís » Fri Jun 27, 2008 8:14 am

Hi Nick,

Thanks for the information. I could reproduce the issue here now and added it (TF02013168) to our defect list to be fixed for next releases.
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

Post Reply