static BarChart Create( DataObject dobj, String sXVarName <, boolean bShow> )
static BarChart Create( String sDataName, Matrix mX <, boolean bShow> )
The return value is a reference to the newly created BarChart object.
DataObject dobj
The DataObject containing the variable you want to plot.
String sXVarName
The name of the variable you want to assign to the X axis.
boolean bShow
If bShow is true, the plot's window is displayed. If bShow is false, the plot's window is hidden. Calling this method without specifying bShow is
equivalent to calling it with bShow equal to true.
String sDataName
The name to assign to the DataObject created internally by this method.
Matrix mX
A vector containing the data you want to plot. This vector is used to create a DataObject and then that DataObject is used to create a BarChart.
This method creates a bar chart.
animals = { "Cat", "Dog", "Cat", "Cat", "Iguana", "Dog", "Bird" }; declare DataObject dobj = DataObject.Create( "Pets", "Animal", animals ); BarChart.Create( dobj, "Animal" );