Histogram Object


Overview

A Chart Object creates a Plot object of type Histogram when the chart type resource is set to XintCHART_TYPE_HISTOGRAM. The histogram is used to display the distribution of a set of data, and optionally a cumulative curve.

Data

The Histogram accepts only DataSampled series for data. For each DataSampled object it creates a HistogramSeries object (distribution curve) and a Line Series (cumulative curve). See section
Histogram Series for a complete description of the resources applicable to the HistogramSeries class. Transposition is not supported for this plot class.

Inherited Behavior and Resources

The Histogram object class inherits behavior and resources from the Xt Object, Graphic, Group and Plot2D object classes.
The following resources are defined by the Histogram object class:
NameTypeDefaultAccess
XmNbarLengthint100CSG
XmNshowCumulativeBooleanFalseCSG
XmNshowDistributionBooleanTrueCSG


XmNbarLength

Specifies the width of the bars used to display the distribution as a percentage between 0 and 100.


XmNshowCumulative

Specifies whether or not to display a curve representing the cumulative sum of the distribution.

XmNshowDistribution

Specifies whether or not to display the distribution curve.

Plot2D Object Inherited Resources

See section
Plot2D Object Class for a complete listing of the inherited resources for the Histogram object class.

Macro

Macro XintIsHistogram returns True if the specified object is an histogram object.

     Boolean XintIsHistogram (Object object)


Histogram Series

The Histogram object class displays its data using HistogramSeries objects (distribution curve) and Polyline series objects (cumulative curve). This object classes inherits its resources from the Graphic class. The following is a list of the applicable resources for this class. See class Graphic for a complete description of these resources.

HistogramSeries Resources
NameTypeDefaultAccess
XmNcolorPixelassigned from color listCSG
XmNdashListchar *NULLCSG
XmNfillColorPixelassigned from color listCSG
XmNfillFilenamechar *NULLCSG
XmNfillPixmapPixmapNULLCSG
XmNfillStyleintXintFILL_SOLIDCSG
XmNlineStyleintXintLINE_SOLIDCSG
XmNlineThicknessint1CSG
XmNsensitiveBooleanTrueCSG
XmNstippleColorPixel"black"CSG

Polyline Series Resources
NameTypeDefaultAccess
XmNcolorPixelassigned from color listCSG
XmNdashListchar *NULLCSG
XmNlineStyleintdynamicCSG
XmNlineThicknessint1CSG
XmNsensitiveBooleanTrueCSG
XmNstippleColorPixel"black"CSG
XmNsymbolBooleanFalseCSG
XmNsymbolColorPixelForegroundCSG
XmNsymbolSizeint88CSG
XmNsymbolTypeintXintSYMBOL_PLUSCSG