Bar charts
Bar charts are a type of visualization which are used to compare the number, frequency, or other measures for different categories of data. Bar charts are the most common type of visualization, and are easy to create and easy to interpret as well. They are used to present categorical data in the form of rectangular bars with heights/lengths proportional to the given values.
There are two categories of aggregation that we need to configure for creating bar charts: metric aggregation and bucket aggregation.
Metric aggregation
Metric aggregation computes metrics on the basis of the way the values of the documents are aggregated. The following are the types of metric aggregations:
- Average: This is used to calculate the average of a numeric field.
- Max: This is used to calculate the maximum value of a numeric field.
- Median: This is used to calculate the median value of a numeric field.
- Min: This is used to calculate the minimum value of a numeric field.
- Percentile ranks: This returns the percentile...