Configuring area, bar, and line charts
With area, bar, and line charts, you plot your data on the X- and Y-axes. There are many possible configurations for displaying your data in your chosen chart.
The X-axis of this chart is the buckets axis. You can define buckets for the X-axis, for a split area on the chart, or for split charts.
Before you begin
Before you choose a buckets aggregation, specify whether you are splitting slices within a single chart or splitting into multiple charts.
A multiple chart split must run before any other aggregations. When you split a chart, you can decide whether the splits are displayed in a row or in a column by clicking the Rows | Columns selector.
Procedure
-
In the metrics table window of the Data tab, select the aggregation that defines the Y-axis. For a full list of the available metric aggregations, see Y-axis aggregations.
-
Enter a custom label.
-
Optional: Advanced users can enter JSON properties in the JSON Input field. You can also add more metrics as needed.
-
In the buckets table window, specify the aggregation that you want to use. For a full list of the available bucket aggregations, see X-axis aggregations.
-
Depending on the aggregation that you specify, complete the remaining fields.
-
Optional: Advanced users can enter JSON properties in the JSON Input field. You can also add sub-buckets as needed.
-
If you have completed your configuration, click Apply changes→Save and specify a name for the chart. Otherwise, go to the Metrics & Axes tab to make further configurations.
If multiple aggregations are defined on a chart’s axis, you can enable and disable aggregations or use the Modify priority by dragging tool to change the aggregation’s priority. |
The Metrics & Axes tab
On the Metrics and Axes tab, you can change the way each individual metric is shown on the chart. The data series are styled in the Metrics table window, while the axes are styled in the Y-axis and X-axis sections.
Metrics
Modify how each metric from the Data tab is visualized on the chart.
- Chart type
-
Choose between Area, Line, and Bar types.
- Mode
-
Stack the different metrics, or plot them next to each other.
- Value Axis
-
Choose the axis you want to plot this data too (the properties of each are configured under Y-axes).
- Line mode
-
Choose how the outline of lines or bars appear; smooth, straight, or stepped.
Y-axis
Style all the Y-axes of the chart.
- Position
-
Position of the Y-axis (left or right for vertical charts, and top or bottom for horizontal charts).
- Scale type
-
Scaling of the values (linear, log, or square root)
- Advanced Options
-
- Labels - Show Labels
-
Enables you to hide axis labels.
- Labels - Filter Labels
-
If filter labels are enabled, some labels will be hidden in case there is not enough space to display them,
- Labels - Rotate
-
Number in degrees for how much you want to rotate labels.
- Labels - Truncate
-
Size in pixels to which the label is truncated.
- Scale to Data Bounds
-
The default Y-axis bounds are zero and the maximum value returned by the data. Check this box to change both upper and lower bounds to match the values returned by the data.
- Custom Extents
-
You can define custom minimum and maximum for each axis.
X-axis
- Position
-
Position of the X-Axis (left or right for horizontal charts, and top or bottom for vertical charts).
- Advanced Options
-
- Labels - Show Labels
-
Enables you to hide axis labels.
- Labels - Filter Labels
-
If filter labels are enabled, some labels will be hidden in case there is not enough space to display them.
- Labels - Rotate
-
You can enter the number in degrees for how much you want to rotate labels.
- Labels - Truncate
-
You can enter the size in pixels to which the label is truncated.
The Panel Settings tab
The options on the Panel Settings tab apply to the entire chart, not just to the individual data series.