Software FX Posted August 25, 2004 Report Share Posted August 25, 2004 The margins are calculated based on the labels being displayed and the actual chart margins. You can manually control the margins by doing: chart1.TopGap = <number>; chart1.LeftGap = <number>; chart1.RightGap = <number>; chart1.BottomGap = <number>; Then you can prevent this margins from being modified to accommodate the point labels by doing: chart1.Gallery = Gallery.Pie; ((SoftwareFX.ChartFX.GalleryObj.Pie) (chart1.GalleryObj)).MinPercentage = 100; Notice that after doing this, there might be labels that will fall outside of the chart area and be clipped. This control the margins, so to make two charts to have the same pie size, the first thing is to make sure both chart controls are the same size. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 26, 2004 Author Report Share Posted August 26, 2004 Is it possible to explicitly specify the diameter of a pie chart? I'm generating a number of charts and for aesthetic reasons we would like them all to be the same size. cheers Rob Link to comment Share on other sites More sharing options...
Software FX Posted August 27, 2004 Report Share Posted August 27, 2004 The Gap properties are margins NOT to be used by the labels, the Pie is restricted to the area INSIDE the margins. To make the MOST use of the available space you want to Minimize the margins (set them all to 1) and set MinPercentage to be 0 (or close to zero) so that the Pie chart can be resized freely to accommodate the labels. High values of MinPercentage will produce clipping. This is precisely the purpose of MinPercentage. -- FP Software FX Link to comment Share on other sites More sharing options...
Software FX Posted August 27, 2004 Report Share Posted August 27, 2004 That's an error in the docs. Here is a description of MinPercentage: When PointLabels are turned ON, the Pie will be reduced to accommodate these labels. MinPercentage refers to the minimum size the Pie chart is going to be reduced to make room for the labels (when PointLabels are on). A MinPercentage of 100 means the chart is not to be reduced at all, MinPercentage of 50 (zero) means the Pie chart may be reduced up to 1/2 of its original size to accommodate the labels. Any value greater than zero may produce clipping of labels. For example, if the labels are so that the Pie needs to be reduced to 40% of its original size to accommodate the labels but MinPercentage is set to 50, the chart will only be reduce to 50% and some labels may be clipped. -- FP Software FX Link to comment Share on other sites More sharing options...
Software FX Posted August 27, 2004 Report Share Posted August 27, 2004 What original question ? There is really only two options here: 1) Labels are not clipped but the pie is reduced 2) The Pie is not reduced and labels are clipped Both options are supported by Chart FX. You can not have "labels not clipped AND Pie not reduced" there is simply not enough real state. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 28, 2004 Author Report Share Posted August 28, 2004 Thanks. That appears to work, but I'm a little confused about this line: > ((SoftwareFX.ChartFX.GalleryObj.Pie) (chart1.GalleryObj)).MinPercentage = 100; Reading the documentation for this property, I thought the MinPercentage property represented a threshold below which a given data point would not be included in the chart. (to quote the doc: "Specify the minimum point value needed to be included in a particular pie chart."), rather than anything to do with the size of the graph...? R Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 28, 2004 Author Report Share Posted August 28, 2004 it seems that no matter how big I set the gap properties, the labels are getting clipped - see the .jpg attached. Why are they being clipped despite the empty space around the pie? R Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 28, 2004 Author Report Share Posted August 28, 2004 OK - I figured as much as it certainly doesn't work as described in the docs! "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:KoeMEQEjEHA.3152@webserver3.softwarefx.com... > That's an error in the docs. Here is a description of MinPercentage: > > When PointLabels are turned ON, the Pie will be reduced to accommodate > these labels. > > MinPercentage refers to the minimum size the Pie chart is going to be > reduced to make room for the labels (when PointLabels are on). > > A MinPercentage of 100 means the chart is not to be reduced at all, > MinPercentage of 50 (zero) means the Pie chart may be reduced up to 1/2 of > its original size to accommodate the labels. > > Any value greater than zero may produce clipping of labels. For > example, if the labels are so that the Pie needs to be reduced to 40% of its > original size to accommodate the labels but MinPercentage is set to 50, the > chart will only be reduce to 50% and some labels may be clipped. > > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted August 28, 2004 Author Report Share Posted August 28, 2004 So to put it bluntly, the answer to my original question is "no"? Unless I don't mind the labels being clipped which is pretty much inevitable if MinPercentage is set to 100. "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:JazfbPEjEHA.3888@webserver3.softwarefx.com... > The Gap properties are margins NOT to be used by the labels, the Pie is > restricted to the area INSIDE the margins. > > To make the MOST use of the available space you want to Minimize the margins > (set them all to 1) and set MinPercentage to be 0 (or close to zero) so that > the Pie chart can be resized freely to accommodate the labels. High values > of MinPercentage will produce clipping. This is precisely the purpose of > MinPercentage. > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.