# How to show field name in Legend?

**URL:** <https://community.grafana.com/t/how-to-show-field-name-in-legend/13262>\
**Category:** InfluxDB\
**Created:** [January 6, 2019, 12:00pm UTC](https://community.grafana.com/t/how-to-show-field-name-in-legend/13262 "2019-01-06T12:00:53Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![klccomstock](https://avatars.discourse-cdn.com/v4/letter/k/df788c/32.png) [@klccomstock](https://community.grafana.com/u/klccomstock)\
**Post date:** [June 17, 2020, 3:23pm UTC](https://community.grafana.com/t/how-to-show-field-name-in-legend/13262/7 "2020-06-17T15:23:45Z")

</div>

If you were accessing the raw field ( without mean, last, etc ) and no groupBy - $col would contain the field name.

Without “Alias” (within grafana ux) or “AS” (in raw query editor) - Influx will return the function name that created the column, not the original field name; in the returned data.

As mentioned; you may need to manually set an ‘alias’ for each field you need in the legend.

---

_[View the full topic](https://community.grafana.com/t/how-to-show-field-name-in-legend/13262)._
