# How to show series name in Time Series chart legend

**URL:** <https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161>\
**Category:** Dashboards\
**Created:** [July 26, 2025, 7:39am UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161 "2025-07-26T07:39:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anantj](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anantj](https://community.grafana.com/u/anantj)\
**Post date:** [July 26, 2025, 7:39am UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/1 "2025-07-26T07:39:53Z")

</div>

- What Grafana version and what operating system are you using?

- **What** are you trying to achieve?

- **How** are you trying to achieve it?

- What happened?

- What did you **expect** to happen?

- Can you copy/paste the configuration(s) that you are having problems with?

- Did you receive any errors in the Grafana UI or in related logs? If so, please tell us **exactly** what they were.  
\*\* N/A

- Did you follow any online instructions? If so, what is the URL?

Screenshots:

 ![Grafana - Panel Editor 1](https://us1.discourse-cdn.com/grafana/original/3X/f/1/f11ea3ddfdb7b7971c21ec21e6135662b901eef1.png)

---

<div class="post-metadata">

**Author:** ![dawiddebowski](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/dawiddebowski/32/49435_2.png) [@dawiddebowski](https://community.grafana.com/u/dawiddebowski)\
**Post date:** [July 26, 2025, 5:44pm UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/2 "2025-07-26T17:44:05Z")

</div>

Hi, did you try setting Display Name (a setting on the right panel, closer to the bottom end of the settings) to `${__series.name}`? That should work. You can also check other stuff you can write there in Data Links section, just type $ sign in the link section and there will be a popup with all the fields you can use, but the one I said I think would work for you

---

<div class="post-metadata">

**Author:** ![anantj](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anantj](https://community.grafana.com/u/anantj)\
**Post date:** [July 27, 2025, 5:14am UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/3 "2025-07-27T05:14:27Z")

</div>

Hello,  
Thank you for the tip. I tried this but it did not work for me. The legend is still showing in the form “ping\_monitor.jitter { target: quad9\_dns }”

I didn’t quite get it about the data links section. When I go to that section, click on add link, it asks me for a title and a link. Trying to type $ in the Title field doesn’t show any popup.

---

<div class="post-metadata">

**Author:** ![dawiddebowski](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/dawiddebowski/32/49435_2.png) [@dawiddebowski](https://community.grafana.com/u/dawiddebowski)\
**Post date:** [July 27, 2025, 7:32am UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/4 "2025-07-27T07:32:14Z")

</div>

Ok, I’m also not very fluent in InfluxDB, but wouldn’t your query need something like `WHERE target = $target`? And not using alias as the variable? In PromQL you would need to pass the variable to the query, not to the legend.

---

<div class="post-metadata">

**Author:** ![anantj](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anantj](https://community.grafana.com/u/anantj)\
**Post date:** [July 28, 2025, 2:02pm UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/5 "2025-07-28T14:02:52Z")

</div>

But wouldn’t that only show the graph for the selected value of the variable (for example amazon\_com as in the screenshot). What I want to do is display the latency for all the “targets” in a single graph

---

<div class="post-metadata">

**Author:** ![dawiddebowski](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/dawiddebowski/32/49435_2.png) [@dawiddebowski](https://community.grafana.com/u/dawiddebowski)\
**Post date:** [July 28, 2025, 8:06pm UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/6 "2025-07-28T20:06:53Z")

</div>

I still think using it in Alias field is what causing all the legends to be called that. Can you delete it and see what happens? Then can you share a screenshot of table view toggled (right beside the time picker)?

---

<div class="post-metadata">

**Author:** ![anantj](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anantj](https://community.grafana.com/u/anantj)\
**Post date:** [July 29, 2025, 11:35am UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/7 "2025-07-29T11:35:12Z")

</div>

It shows the full “tag”  
Removed the $target from the alias field and this is how it appears:

 ![Grafana - Panel Editor - Empty Alias Field](https://us1.discourse-cdn.com/grafana/original/3X/0/e/0e94c13f568c98804a22d4acf430b7a851e1e739.png)

 ![Grafana - Panel Editor - Empty Alias Field - Table View](https://us1.discourse-cdn.com/grafana/original/3X/2/1/215c90a11a6a92ab910a4ad0509233ac8b63f768.png)

---

<div class="post-metadata">

**Author:** ![dawiddebowski](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/dawiddebowski/32/49435_2.png) [@dawiddebowski](https://community.grafana.com/u/dawiddebowski)\
**Post date:** [July 29, 2025, 4:26pm UTC](https://community.grafana.com/t/how-to-show-series-name-in-time-series-chart-legend/155161/8 "2025-07-29T16:26:23Z")

</div>

Do I understand correctly that you want to see the name of the “target” in the legend, not the metric name? So you’d like to have your legend be of labels “amazon\_com”, “cloudflare\_dns\_primary” etc? If so, try typing `$tag_target` in the Alias by input.
