# Coloring Time "From Now" in Single Stat Panel

**URL:** <https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025>\
**Category:** Time Series Panel\
**Created:** [August 8, 2019, 11:19am UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025 "2019-08-08T11:19:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![markusschilz](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@markusschilz](https://community.grafana.com/u/markusschilz)\
**Post date:** [August 8, 2019, 11:19am UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025/1 "2019-08-08T11:19:56Z")

</div>

Hey everbody,

i´ve got some measurements from different sources and want to visualize the time between the last measurement and the present. At the Moment i am using the singlestat panel selecting the measurment and its last Date. As Unit i used “From now” and it shows (what i wanted) the days since the last measurement. For example “3 days ago” or “2 weeks ago”.

Now i would like to color the panel red in case the measurement is longer ago than 7 days. But the thresholds-option does not work with days, hours and so on… i think its calculating the decimal number of the date and references to this decimal number…

Anybody got an idea how to color the passed time in green, yellow or red ?  
Thanks a lot 🙂

---

<div class="post-metadata">

**Author:** ![markusschilz](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@markusschilz](https://community.grafana.com/u/markusschilz)\
**Post date:** [August 16, 2019, 11:33am UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025/2 "2019-08-16T11:33:57Z")

</div>

Anybody an idea ?  
Thanks 🙂

---

<div class="post-metadata">

**Author:** ![markusschilz](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@markusschilz](https://community.grafana.com/u/markusschilz)\
**Post date:** [August 26, 2019, 9:10am UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025/3 "2019-08-26T09:10:52Z")

</div>

![Unbenannt](https://us1.discourse-cdn.com/grafana/original/2X/4/4b21858c7339c93a72e252a4111a82288b924cfd.png)

That´s what i want to display with the diagram…

---

<div class="post-metadata">

**Author:** ![cj1](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@cj1](https://community.grafana.com/u/cj1)\
**Post date:** [January 29, 2020, 7:52am UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025/4 "2020-01-29T07:52:33Z")

</div>

Same problem here. Anyone ?

---

<div class="post-metadata">

**Author:** ![redge76](https://avatars.discourse-cdn.com/v4/letter/r/ecc23a/32.png) [@redge76](https://community.grafana.com/u/redge76)\
**Post date:** [February 20, 2020, 9:08am UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025/5 "2020-02-20T09:08:42Z")

</div>

Same here. How do you color a “from now” single stat. In fact the value of the panel is a date in “epoch” format. The value in “time from now” is only calculated at display time.

---

<div class="post-metadata">

**Author:** ![diegoserrano](https://avatars.discourse-cdn.com/v4/letter/d/4491bb/32.png) [@diegoserrano](https://community.grafana.com/u/diegoserrano)\
**Post date:** [September 25, 2020, 12:35pm UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025/6 "2020-09-25T12:35:09Z")

</div>

Same here… Any one have solution ?

---

<div class="post-metadata">

**Author:** ![ponsfrilus](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/ponsfrilus/32/7187_2.png) [@ponsfrilus](https://community.grafana.com/u/ponsfrilus)\
**Post date:** [October 7, 2020, 3:25pm UTC](https://community.grafana.com/t/coloring-time-from-now-in-single-stat-panel/20025/7 "2020-10-07T15:25:37Z")

</div>

I know this is not exactly the same request, but the topic: [Coloration based on date with thresholds/overrides](https://community.grafana.com/t/coloration-based-on-date-with-thresholds-overrides/37634) gives an acceptable solution, while not based on the unit “from now”.
