Dynamic label for Y-axis Time-series

Hi Folks,

We are using Grafana 8.

We have a Time-series chart and we need to show the dynamic labels for Y-axis
label. We have a variable declared with a query which will be fetch Unit of Measure from a database table based of different parameter selected.

Below is the screenshot attached for reference: