Bug in G7? Bars in line chart all over the place with PostgreSQL datasource

I want to add bars to better show counts of data over time. (I had this dashboard in Grafana 6 where it worked).

Here is an example:

I have duplicated the query with lines and bars to show how the data looks.

Using bars on a line chart with Prometheus datasource works as expected.

The problem seems that Grafana is not able to correctly set the bar width and the bars in the right place. The width seems off and the other bars are skewed.