StatBean Name: Barchart

Purpose: Constructs a standard one-dimensional barchart.

DataSource: any (automatic data transfer if Tabulation).


Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
barColorColor arrayThe colors to be used for the bars.Any valid Color.Various.
barLabelColorColorThe color of the bar labels.Any valid Color.Color.black
barLabelFontFontThe font to be used for the bar labels.Any Font."Serif",0,12
barLabelsStringLabels to add at end of bars."None","Class","Frequency",
"Percentage",
"Class(frequency)",
"Class(percentage)",
"Frequency(percentage)".
"None"
barWidthintPercentage of available space used by bars (affects bar gap).1-10090
baselinedoubleLocation from which the bars extend.Any double.0.0
classNameStringName for classes to be used in title.Any string.""
decimalPlacesintNumber of decimal places for displaying frequencies.0+, or -1 for default.-1
drawVerticalbooleanWhether to make the bars vertical.true,falsefalse
errorBarsStringType of error bars to display."None","Lines","I-Beams""None"
frequencyVariableNameStringThe name of the column containing class frequencies.Any string."Frequency"
highlightBarintNumber of the highlighted bar, if any.0 if none, else 1+.0
highlightColorColorThe color of the highlighted bar.Any valid Color.Color.red
labelVariableNameStringThe name of the column containing class labels.Any string."Label"
orderingStringThe type of column ordering desired. Increasing and Decreasing refer to class frequencies."Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
rotateClassLabelsbooleanWhether to make the bar labels vertical.true,falsefalse
scaleByPercentagebooleanWhether to scale the axes by percentage rather than frequency.true,falsefalse
stackBarsbooleanWhether to stack classes in a single bar.true,falsefalse
useOneColorbooleanWhether to draw all bars (except the highlighted one) in a single color.true,falsefalse
weightVariableNameStringThe name of the column containing optional class weights.Any string.""

Code Sample - see Tabulation.