# How to make series override dependent on template variable?

**URL:** <https://community.grafana.com/t/how-to-make-series-override-dependent-on-template-variable/54833>\
**Category:** Grafana\
**Created:** [October 15, 2021, 8:20pm UTC](https://community.grafana.com/t/how-to-make-series-override-dependent-on-template-variable/54833 "2021-10-15T20:20:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kadify](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@kadify](https://community.grafana.com/u/kadify)\
**Post date:** [October 15, 2021, 8:20pm UTC](https://community.grafana.com/t/how-to-make-series-override-dependent-on-template-variable/54833/1 "2021-10-15T20:20:19Z")

</div>

I have a use case where I have a variable and there are 2 measurements for each variable. I want each variable option in a graph panel to be the same color.

For example, assume I have a variable that gives locations (‘Houston’, ‘Seattle’, ‘Miami’, etc.) and I am plotting temperature and humidity in a graph. How do I make a series override so that each city has the same color? So Temp and Humidity for Houston would be orange, and green for seattle temp and humidity, etc.?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/grafana/original/2X/e/ef5308cc58c9e5a13187b5012eb99f406928462f.png) [@system](https://community.grafana.com/u/system)\
**Post date:** [October 15, 2022, 8:20pm UTC](https://community.grafana.com/t/how-to-make-series-override-dependent-on-template-variable/54833/2 "2022-10-15T20:20:34Z")

</div>

Closed on October 15, 2022, 8:20pm UTC

This topic was automatically closed after 365 days. New replies are no longer allowed.
