A histogram widget is a type of bar chart that graphically displays the values of numeric attributes to show distribution. A good data source for a histogram widget has attribute values that are continuous in nature and can be divided into equal intervals.
A histogram is defined for a single attribute field, such as population. When configuring the histogram, you can set the number of equal intervals used to classify the data. You can also use a histogram to display categorical data, such as types of crime for a given police district. In this case the data is nominal; there is no relationship or order between each of the categories.
In an emergency management scenario following an earthquake, you could graph the value of structural damage occurring to buildings. This example histogram shows numeric values grouped into five intervals.
- Click Edit, and click Edit Operation View.
- To create a new widget, click Widget, click Add Widget, choose the type of widget, and click OK. To update settings for an existing widget, click Settings , and click Configure on the widget's window.
- Click the Data Source drop-down arrow, and choose the item that will provide the data for the widget.
- In the Title box, type a title that will be displayed in the widget's window.
- In the Description box, type a caption that will be displayed below the widget.
- Click the Value Field drop-down arrow, choose an attribute field that will be displayed, and set the number of intervals in the data.
- Click the Axes tab and specify the chart axis range and whether to display labels and grid lines. Choose Automatic to have the range automatically calculated based on the values in the chart. Alternatively, choose Manual to set the range to a specific value, and type the value in the Minimum and Maximum boxes. You can also choose whether to display proportional (normalized) values. By default, the raw frequencies calculated from the intervals are displayed in the chart. However, in some cases you may want to present a normalized view of the histogram, resulting in a proportional (percentage) view of the data rather than the frequency count.
- Click the Appearance tab to set the color of the bars in the histogram.
- When using a data source that represents a single feature, such as a selection in a list widget, click the Name Field drop-down arrow to set the field value that will be displayed above the widget.
- Click the Feature Actions tab to set which tools are available when interacting with features in this widget.
- Set which action occurs when tapping or clicking within the widget.
- When you're satisfied with the preview, click OK to finish configuring the widget.