Bar Gauge from PostgreSQL data

Hi Everybody,

I want to make a Bar Gauge with data from a PostgreSQL database in Grafana 8.
I use the following command as shown in the picture.
But it didn’t works out. :slightly_frowning_face:

I want to make a chart like below.
But then with the duration time as time time column. And not the start time as shown in the picture below.

I want to get a bar gauge with the duration time for every category.

I tried a lot of things but I can’t find the right solution.

Can anyone help me?