So I'm just building a small project that involves the use of MySQL and Grafana.
Here's my MySQL query and it's corresponding correct output:
select state, sum(total_cases) from PolDATA group by state order by sum(total_cases) desc limit 5;
I have enetered the same query in Grafana as well. Also, the format is Table and not Time Series. The output in Grafana is this: when I display as a gauge. Here I do not want the text to be sum(total_cases). I want it to display the name of the state. I tried altering it in Visualization->Field->Title but that changes all the labels to the same value. I even tried adding to the query
select sum(total_cases) as "Sometext"
but it changes all the labels to "Sometext" instead.
Help is appreciated. Thank you (: