How to use "Group-by" tag as the Legend

The metrics is
Select variableA GROUP BY tag(projName)

The legend will be -VariableA.mean{projName: “projA”} -VariableB.mean(projName: “projB”} …
How can I display the legend as ProjA, ProjB…

Hi,
I am thinking if you are using InfluxDB, so try to put $tag_projName to ALIAS BY filed.

1 Like