Doc Holliday Posted May 9, 2008 Report Share Posted May 9, 2008 Hello, In my Pie-Charts the PointLabels will be file:///C:/DOKUME%7E1/HKOELB%7E1.DAP/LOKALE%7E1/Temp/moz-screenshot.jpgtruncated. (see attachment) I'm using the following code for initialization. ((ChartFX.WinForms.Galleries.Pie)m_Chart.GalleryAttributes).Square = true; ((ChartFX.WinForms.Galleries.Pie)m_Chart.GalleryAttributes).LabelsInside = false; ((ChartFX.WinForms.Galleries.Pie)m_Chart.GalleryAttributes).LabelLineBreak = 10; ((ChartFX.WinForms.Galleries.Pie)m_Chart.GalleryAttributes).Stacked = false; ((ChartFX.WinForms.Galleries.Pie)m_Chart.GalleryAttributes).MaximumLabelMargin = 100; In other Posts in this Forum I get the information that I have to set MaximumLabelMargin = 100.But it doesn't work. Is their any other possibility to force the Pie-Chart not to truncate the Labels ? Quote Link to comment Share on other sites More sharing options...
Frank Posted May 9, 2008 Report Share Posted May 9, 2008 We were able to reproduce this problem and determined it was a bug. A fix will be included in the next Hotfix/Service pack. Please contact Software FX support for availability. Thank you for your feedback. Quote Link to comment Share on other sites More sharing options...
Samuel Posted July 8, 2009 Report Share Posted July 8, 2009 Hi , I am also facing the same problem Is the hot fix there in ChartFx 7? Quote Link to comment Share on other sites More sharing options...
Frank Posted July 21, 2009 Report Share Posted July 21, 2009 This problem is fixed. Notice that labels can be clipped if the MaximumLabelMargin (Pie class) is set to less than 100. If yo want to guarantee no labels will be clipped (as long as there is room to show them) set: ((ChartFX.WinForms.Galleies.Pie) chart.GalleryAttributes).MaximumLabelMargin = 100; Notice that by doing this you are allowing the pie itself to become very tiny in favor of displaying the labels. Quote Link to comment Share on other sites More sharing options...
Samuel Posted July 22, 2009 Report Share Posted July 22, 2009 Hi, Thanks for your suggestion. I have tried the same in the past. As i have large label names, finally i am getting a 1/2 cm diameter pie The only possible solution which can help me is "Wrap the label text". Is it possible?? Quote Link to comment Share on other sites More sharing options...
RandyJ Posted July 27, 2009 Report Share Posted July 27, 2009 Hi, Unfortunately, there is no built-in feature to enable label-wrapping. However, as a workaround you can specify a line break (\n) when defining a value for the text property of the point class: Chart1.AllSeries.PointLabels.Format = "%L";Chart1.Points[0, 0].Text = "Line1 \n Line 2";Regards, RandyJ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.