Histogram.ShowDensity

Prototypes

void ShowDensity( <boolean bShow> )

Parameters

boolean bShow
If bShow is true, the Y axis represents density. If bShow is false, the Y axis represents frequency. Calling this method without a parameter is equivalent to calling it with bShow equal to true.

Remarks

This method controls whether the Y axis represents frequency or density. When the Y axis represents density, the areas of the Histogram bars sum to one. By default, the Histogram displays frequency. If this method is called with bShow equal to false when the plot is not currently showing density, the call is ignored.

Example
height = T({ 58 59 60 52 54 56 59 64 57 58 63 62 59 61 59 58 54 58 53 56 });
declare DataObject dobj;
dobj = DataObject.Create( "Student Height", "Height", height );
declare Histogram plot = Histogram.Create( dobj, "Height" );
plot.ShowBarLabels();
plot.ShowDensity();
See Also

Histogram.ShowBarLabels
Histogram.ShowPercentage