Jump to content
Software FX Community

Pie.MinPercentage


cbowditch
 Share

Recommended Posts

Hi,

 I'm using ChartFX for Java 6.2. Can anyone describe what this property does? The documentation is very brief and just says

Specify the minimum point value needed to be included in a particular pie chart.

I think this mean that if a data point is less than x% of the pie then it is ignored, but not 100% certain. I have a similar requirement around point labels. I only want point labels to be shown if the pie slice is greater than x%. Currently if the pie slice is too small ChartFX renders the point label outside of the pie slice instead of inside it but I would prefer to hide the point label altogether. Can it be done?

Thanks,

 Chris

Link to comment
Share on other sites

You misunderstood the meaning of Pie.MinPercentage. The description for this property is:

Specifies the minimum percentage the chart will reduce itself to accommodate label size when PointLabels is turned on.

It refers to how much space the point labels are allowed to take, not to how big the smallest pie should be.

You can hide labels conditionally by adding a ConditionalAttributes. A conditionalAttribute allows you to define a specific set of attributes for all points for which a condition is met. In your case the condition is the values below a certain threshold and the attributes is the PointLabels set to false.

For more information on conditional attributes please refer to the programmer's guide (under Data Analysis).

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...