Jump to content
Software FX Community

pie chart size?


User (Legacy)

Recommended Posts

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

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

post-2107-1392237950635_thumb.jpg

Link to comment
Share on other sites

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

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

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...