image
How can I add average line to the chart?

Redash visualisations don’t calculate anything, so you’ll need to calculate this in your query and plot it like any other line.