ComponentChart STATBEAN®


Purpose: Component diagram tool that displays a component line chart for two or more time series with filled areas. Allows Statgraphics to function as component diagram software.

Component Diagram Software DataSource: any. 


Read/Write Properties of the Component Diagram Tool
Name Type Description Possible Values Default Value
forceEqualScales boolean Whether to force the x-axis and y-axis scaling to be the same. true,false false
showLegends boolean Whether to display legends at the right of the plot. true,false true
suppressXaxis boolean Whether to suppress display of the x-axis scaling and ticmarks. true,false false
suppressYaxis boolean Whether to suppress display of the y-axis scaling and ticmarks. true,false false
tablewiseExclusion boolean Whether all rows of the data table containing a missing value in any column should be excluded from the plot. true,false false
timeScale String The type of time units. "Year","Quarter","Month","Day",
xVariableName String The name of the column with data values to be plotted on the horizontal axis. Any string.  
yVariableNames String[] The name of one or more columns with data values to be plotted on the vertical axis. Any string.  

Other properties for the component diagram software are inherited from the java.awt.Canvas class and from the general GraphicalStatbean class.  

Component Diagram Tool Code Sample 

//create a datasource bean 
FileDataSource fileDataSource1 = new STATBEANS.FileDataSource(); 

//set the file name to be read 

//set the delimiter character used in the file 

//create a plot bean 
ComponentChart chart1 = new STATBEANS.ComponentChart(); 

//set the columns for the x and y axes 
String ynames[]={"Domestic","International"}; 

//set the type of time units 

//override the top title 
xYPlot1.setTopTitleLine1("Sample Component Chart"); 

//override the axis titles 

//add the plot to the application frame 

//make the plot a listener for changes in the FileDataSource bean 

//instruct the fileDataSource bean to read the file