StatBean Name: TwowayBarchart

Purpose: Constructs a barchart for a twoway cross-tabulation.

DataSource: any (automatic data transfer if Crosstabulation).


Read/Write Properties
NameTypeDescriptionPossible ValuesDefault Value
barColorColor arrayThe colors to be used for the bars.Any valid Color.Various.
barWidthintPercentage of available space used by bars (affects bar gap).1-10090
baselinedoubleLocation from which the bars extend.Any double.0.0
columnClassNameStringName to be used as column header.Any string."Column"
columnLabelVariableNameStringThe name of the column containing row labels.Any string."Label"
columnOrderingStringThe type of column ordering desired. Increasing and Decreasing refer to class frequencies."Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
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"
numberOfColumnsintNumber of columns.1+0
numberOfRowsintNumber of rows.1+0
rotateClassLabelsbooleanWhether to make the bar labels vertical.true,falsefalse
rowClassNameStringName to be used as row header.Any string."Row"
rowOrderingStringThe type of row ordering desired. Increasing and Decreasing refer to class frequencies."Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
rowLabelVariableNameStringThe name of the column containing row labels.Any string."Label"
scaleByPercentagebooleanWhether to scale the axes by percentage rather than frequency.true,falsefalse
stackBarsbooleanWhether to stack classes in a single bar.true,falsefalse

Other properties are inherited from the java.awt.Canvas class and from the general GraphicalStatbean class.

Code Sample - see Crosstabulation.