Line, Area LineBar, Bar, and Bar Horizontal charts allow you to plot your data on the X/Y axis.
First, you need to select the metrics that define the value axis.
Metric Aggregations:
- Count: The count aggregation returns a raw count of the elements in the selected index pattern.
- Average: This aggregation returns the average of a numeric field. You should select a field from the drop-down.
- Sum: The sum aggregation returns the total sum of a numeric field. Select a field from the drop-down.
- Min: The min aggregation returns the minimum value of a numeric field. Select a field from the drop-down.
- Max: The max aggregation returns the maximum value of a numeric field. Select a field from the drop-down.
- Unique Count: The cardinality aggregation returns the number of unique values in a field. Select a field from the drop-down.
Enter a string in the field Custom Label to change the default display label.
You can add an aggregation by clicking the button Add Metrics and deleting it by clicking the red cross.
Also, you need to specify the buckets to determine what information is being retrieved from your data set.
Buckets aggregation:
- Date Histogram
A date histogram is built from a numeric field and organized by date.
You need to select the time in "Field" and specify in "Minimum intervals" a minimum time frame (minute, hourly, daily, weekly, monthly, or yearly.)
You can also specify a custom interval frame by selecting "Custom interval?", and specifying a time unit in the text field "Fixed interval."
Custom interval time units are ms for milliseconds, s for seconds, m for minutes, h for hours, and d for days.
Enter a string in the field Custom label to change the display label.
In addition, you can also add sub-buckets by clicking the button Add sub-buckets - Terms
A terms aggregation enables you to specify the order ascendent or descendent from the n elements "Size" of a given field to display, ordered by (metric or alphabetical.)
Enter a string in the field Custom label to change the display label.
You can add sub-buckets by clicking the button Add sub-buckets.
If you want to customize your chart's appearance, click on the Options tab to modify (series, y-axis, x-axis, legend, toolbox, colors, grid, and data zoom.)
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article