TwowayBarchart STATBEAN®


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

Cross Tabulation Chart DataSource: any (automatic data transfer if Crosstabulation). 

twowaybarchart


Cross Tabulation Chart Read/Write Properties
Name Type Description Possible Values Default Value
barColor Color array The colors to be used for the bars. Any valid Color. Various.
barWidth int Percentage of available space used by bars (affects bar gap). 1-100 90
baseline double Location from which the bars extend. Any double. 0.0
columnClassName String Name to be used as column header. Any string. "Column"
columnLabelVariableName String The name of the column containing row labels. Any string. "Label"
columnOrdering String The type of column ordering desired. Increasing and Decreasing refer to class frequencies. "Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
drawVertical boolean Whether to make the bars vertical. true,false false
errorBars String Type of error bars to display. "None","Lines","I-Beams" "None"
frequencyVariableName String The name of the column containing class frequencies. Any string. "Frequency"
numberOfColumns int Number of columns. 1+ 0
numberOfRows int Number of rows. 1+ 0
rotateClassLabels boolean Whether to make the bar labels vertical. true,false false
rowClassName String Name to be used as row header. Any string. "Row"
rowOrdering String The type of row ordering desired. Increasing and Decreasing refer to class frequencies. "Alphabetical",
"As Entered",
"Decreasing",
"Decreasing Alphabetical",
"Increasing",
"Increasing Alphabetical".
"As Entered"
rowLabelVariableName String The name of the column containing row labels. Any string. "Label"
scaleByPercentage boolean Whether to scale the axes by percentage rather than frequency. true,false false
stackBars boolean Whether to stack classes in a single bar. true,false false

Other properties need to create a cross tabulation chart are inherited from the java.awt.Canvas class and from the general GraphicalStatbean class.

Code Sample - see Crosstabulation.