BarChart.SetOtherThreshold

Prototypes

void SetOtherThreshold( double dPercentage )

Parameters

double dPercentage
The percentage (0 to 100) of the total number of observations below which observations are placed in the "Others" category.

Remarks

A bar chart displays the frequency of values for a categorical variable. If a category contains relatively few observations, that category is merged into a special category called "Others". The default threshold at which this occurs is 2 percent, which means that if a category contains fewer than 2 percent of the total number of observations, that category is merged into the "Others" category.

Example
animals = { "Cat", "Dog", "Cat", "Cat", "Iguana", "Dog", "Bird" };
declare DataObject dobj = DataObject.Create( "Pets", "Animal", animals );
declare BarChart plot = BarChart.Create( dobj, "Animal", false );
plot.SetOtherThreshold( 20 );
plot.ShowWindow();