Skip to main content

Mixed Chart

A mixed chart draws bars and lines on the same chart: you choose for each dataset whether it is a bar or a line. All datasets share one x-axis and one value axis, so it is the right choice for related metrics of a similar scale — for example the actual value as bars and a target or average as a line.

When to use it​

  • Actual values (bars) alongside a target or plan (line).
  • A monthly value (bars) alongside its average (line).
  • Any time two series share an x-axis and one of them reads better as a line.

Building a mixed chart​

Return your labels and the numeric series as columns:

SELECT
month AS "Month",
SUM(revenue) AS "Revenue",
SUM(target) AS "Target"
FROM monthly
GROUP BY month
ORDER BY month;

In the chart settings choose Mixed as the chart type and pick Month as X axis values. Add a dataset with Revenue as its Datasource and Chart type Bar, and one with Target and Chart type Line. A line dataset can also fill the area below it (Area).

Tips​

  • Both chart types use the same value axis: a small percentage next to a large total is drawn as a flat line near zero.
  • Order the labels with ORDER BY so the line reads correctly.
  • Don't overload it — one bar series and one line series is the clearest combo.