StatBean Name: Piechart

Purpose: Constructs a standard one-dimensional piechart.

DataSource: any (automatic data transfer if Tabulation).


Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
classNameStringName for classes to be used in title.Any string.""
decimalPlacesintNumber of decimal places for displaying frequencies.0+, or -1 for default.-1
frequencyVariableNameStringThe name of the column containing class frequencies.Any string."Frequency"
highlightOffetintPercentage offset for the highlighted slice.1-10010
highlightSlice1intNumber of the first highlighted slice, if any.0 if none, else 1+.0
highlightSlice2intNumber of the second highlighted slice, if any.0 if none, else 1+.0
labelVariableNameStringThe name of the column containing class labels.Any string."Label"
legendsStringThe information to be placed in the legend block."None","Class",
"Frequency",
"Percentage",
"Class(frequency)",
"Class(percentage)",
"Frequency(percentage)"
"None"
linesLengthintLength of lines drawn to each label as a percentage of available graph space (affects spacing also).0+10
linesToLabelsbooleanWhether lines will be drawn to each label.true,falsefalse
orderingStringThe type of column ordering desired. Increasing and Decreasing refer to class frequencies."Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
pieWidthintPercentage of available space used by the pie (affects the radius).1-10080
sliceColorColor arrayThe colors to be used for the slices.Any valid Color.Various.
sliceLabelColorColorThe color of the slice labels.Any valid Color.Color.black
sliceLabelFontFontThe font to be used for the slice labels.Any Font."Serif",0,12
sliceLabelsStringLabels to add at end of slices."None","Class",
"Frequency",
"Percentage",
"Class(frequency)",
"Class(percentage)",
"Frequency(percentage)"
"Class(percentage)"
weightVariableNameStringThe name of the column containing optional class weights.Any string.""

Code Sample - see Tabulation.