Histograms and Bar charts are very useful for data visualization. Even though they're pretty similar, they don't share the same real purpose: While histograms are meant to show the frequency of certain data range, bar charts are intended to compare values through a bars' height or length. Today, we will learn to customize each of these charts.
1. Histogram Charts
A default histogram looks like this:
While creating the widget, you will be asked to choose:
The number of bins displayed.
X and Y axis configuration.
SI prefix: Adds a unit prefix from the International System of Units (Metric System) to the widget.
Customize the widget:
Edit the widget settings and go to the "appearance" tab located at the upper right corner.
Adjust the fields to fit your desired parameters. Below is a good example of customized histogram chart:
2. Bar Charts
A default bar chart looks like this:
To adjust its settings, open the widget's configuration menu by either creating or editing a widget:
In the "aggregation method" field, you can choose the way your data is displayed by choosing one of the following options:
Average: Displays the average value per hour or per day based on your sensor's readings.
Minimum: Displays the minimum value of the variable.
Maximum: Displays the maximum value of the variable.
Sum: Displays the sum of the values.
Count: Displays the number of dots received stored in the variable.
Last value: Displays the last value received by the variable.
The settings of the previous image result in the following widget.
Highlight top columns: Choose the number of bars you want to highlight with the color of your choice or leave at 0 so that no bar is highlighted. The bars with the highest values are affected by this option.
Sort columns: Sort bars based on their values in an ascending or descending order.
Date format.
Decimal places: Choose the number of decimal places to be displayed in the values.
SI prefix: Decide whether or not a Metric System's prefix will be added.