This page will help you choose an appropriate chart for visualizing how values are distributed within a set.
For example: You want to visualize how the number of employees are distributed across different salary ranges, or you want to compare the distribution of salaries across different job levels.
You can use a histogram or a frequency polygon to visualize how values are distributed within one set of values.
A histogram is used to display a number of values distributed across a series of ranges. Histograms are extremely useful for emphasizing the number of values.
The convention for a histogram is to remove the gaps between the bars or columns. However, as this chart is not yet available in SAP Fiori, you can use a classic column chart or bar chart instead.
The chart below shows how the rating of a product is distributed.
Histogram with vertical bars
If the labels of the ranges are long compared to the width of the chart, it’s better to use horizontal bars as illustrated below. If you follow this advice, you will avoid the undesirable effects that come as a result of displaying the category labels at 45°, making them hard to read and frequently leading to truncation of text.
If you want to emphasize the shape of the distribution more than the number of values, then use a ‘frequency polygon’ which is really just a line chart that shows the distribution of a frequency of something. The chart below shows how salaries are distributed within a company.
The Box plot is an ideal chart if you want to display how a distribution changes over time, or you want to compare many distributions. The example below illustrates a typical box plot with the median including the lower and higher quartiles and the highest and lowest value.
Please note that the box plot is not yet available in the SAP Fiori chart library.
Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.