Page 1 of 1

Fixed height and width

Posted: Thu Jun 26, 2008 1:24 pm
by 13049011
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

Posted: Thu Jun 26, 2008 1:48 pm
by narcis
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.

Posted: Fri Jun 27, 2008 3:14 am
by 13049011
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

Posted: Fri Jun 27, 2008 8:14 am
by narcis
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.