Combo Charts
Combo charts have a secondary vertical axis that lets you view two aggregates on the same chart. A common combo chart is a bar or column chart with a line on a secondary vertical axis for comparison.
For example, suppose you run a query like this:
=*apache*
| parse "HTTP/1.1\" * * * " as status_code, size, referrer
| timeslice 5m
| avg(size), count by _timeslice
This query typically produces a bar or column chart like this:
With a combo chart, you can display _count as a line on a second Y axis. You can then compare the number of requests over time (_count) with the average number of bytes per request (_avg).
Create a Combo chart
To create a Combo chart, your query needs to return at least two dimensions of aggregate data or time series. The example query returns _count and _avg.
- Secondary axes are configured in the Display Overrides menu. Open the Display Overrides menu. In the screenshot, it is surrounded by a red box.
- From the Query or series name dropdown, select the field or series to use for the secondary axis. In this example, select
_count. You can also set an Alias. - Under Style, choose how the panel displays the data. Select AxisYType and set it to Right Y-Axis. If you select Left Y-Axis, the series overlaps the existing aggregate data, which is already on the left axis.
- By default, the additional axis uses the same chart type as the existing data. In this example, select Chart Type and set it to Line to make the data easier to compare.
- Set any other overrides you want, then save or update the panel.