PieChartExpression

Definition

The PieChartExpression inherits all the properties from the AbstractChartExpression, and adds some pie-chart specific properties. These are listed below:

Properties

Property Name

Data Type

Description

circular

Boolean (true/false)

If true, the pie chart will only be generated in a circle. If false, depending upon the chart width and height, the chart may result in an ellipse. Default: true

explodePct

Decimal

The percent amount that the piece will be exploded expressed as a number between 0 and 1. For example, .20 explodes the piece 20%.

explodeSegment

String

The provided functionality allows for the explosion of the pie segment having the minimum value, the pie segment having the maximum value, or the actual pie segment as an integer. Valid values for this can be minValue, maxValue, or an integer representing the segment number to explode.

ignoreNulls

Boolean (true/false)

If true, then the chart plot will ignore values that are null, and they won't be factored into any percentages. Default: true

ignoreZeros

Boolean (true/false)

If true, then the chart plot will ignore any values that are zero, and they won't be factored into any percentages. Default: true

pieLabelFormat

String

When the pie chart is generated, the pie pieces are labeled using this label format mask. Can be a combination of text, and any of the following replaceable parameters:
{0} - The item key
{1} - The item value
{2} - The item value as a percentage
Default (from JFreeChart): {0} = {1}

pieLegendLabelFormat

String

When the legend is plotted, the labels are created using this format mask. Can be a combination of text, and any of the following replaceable parameters:
{0} - The item key
{1} - The item value
{2} - The item value as a percentage
Default: (from JFreeChart): {0} = {1}

rotationClockwise

Boolean (true/false)

If true, the pie chart is rendered with each successive pie piece going clockwise. If false, then counter-clockwise. Default: true

showPieSectionLabels (as of 1.7 M2)

Boolean (true/false)

If true, the pie chart is rendered with each pie slice labeled. If false, then no labels are displayed. Default: true