Heatmap loading postgreSQL database

I have a postgreSQL database updating every second.
This contains a vector of size 20 x 100 (this is a circulant buffer, FIFO, newest is last).
It contains 100 time samples of a quantity measured in the atmosphere, discretized in 20 altitude layers.
I would like to plot this data as a heatmap.
In x-axis, the time, in y-axis, the altitude, and in color, the value of the quantity measured.
How to configure Grafana to create this heatmap ?