A histogram represents the distribution of numerical data. To create a histogram, the frequency of data within a range of values will need to be bucketed into intervals. Opposed to bar charts, histograms display the frequency of continuous data. The red line displays the normal distribution. The Mean - stdDev (stdDev – standard deviation), Mean and Mean + stdDev lines display statistical means. The Minimum line displays the minimum count.
If creating a histogram viewlet using a form, the following settings are required:
- Within the Fields section, enable the Count option. Depending on the type of viewlet, this option can be displayed as Events Count, Activities Count, or Snapshots Count.
- From the Group by section, select a numerical element that has the bucket option. Enable this checkbox and specify all associated options. If EventCount is selected, you will have the following options:
- Size: the viewlet generated will divide the data into intervals by the size range defined within the bucket value field.
- Count: distributes the data in the number of intervals specified within the bucket value field.
- Auto: if you do not need to specify a particular bucket range.
- Select the Histogram option within the Viewlet Type section.
The following viewlet gets generated using the options selected in the figure above. The same viewlet can be populated also with jKQL:
jKQL > Get number of Activity group by EventCount bucketed by size 3 show as histogram