# Buttons to change Grafana Time Range

**URL:** <https://discourse.nodered.org/t/buttons-to-change-grafana-time-range/80924>\
**Category:** General\
**Created:** [30 August 2023 19:14 UTC](https://discourse.nodered.org/t/buttons-to-change-grafana-time-range/80924 "2023-08-30T19:14:45Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![richiep](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@richiep](https://discourse.nodered.org/u/richiep)\
**Post date:** [30 August 2023 19:14 UTC](https://discourse.nodered.org/t/buttons-to-change-grafana-time-range/80924/1 "2023-08-30T19:14:45Z")

</div>

Hey All,  
I've got Grafana and Influxdb set up and running. My current graphs show 1 day, 7 days, or whatever. I'd like to be able to access historical data without making a new dashboard in Grafana. I've seen examples of this while setting this up but I can't seem to find them again...

I'd like to be able to click a series of buttons that will show as little as a half an hour to a whole year. And also be able to look at a specific date in time.

How can I set up these buttons?

Thanks  
Rich

---

<div class="post-metadata">

**Author:** ![xx\_Nexus\_xx](https://avatars.discourse-cdn.com/v4/letter/x/54ee81/32.png) [@xx\_Nexus\_xx](https://discourse.nodered.org/u/xx_Nexus_xx)\
**Post date:** [30 August 2023 23:41 UTC](https://discourse.nodered.org/t/buttons-to-change-grafana-time-range/80924/2 "2023-08-30T23:41:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fbaf7d2660f9be4ec7b827af8a0ab2c3fc540ad8.png)  
[Grafan\_date\_range.json](https://discourse.nodered.org/uploads/short-url/5pjkE2uNiXbPZLnGTwgtWVUxAWF.json) (25.6 KB)

This is what I use ..stitched together by informations from this forum here

---

<div class="post-metadata">

**Author:** ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)\
**Post date:** [31 August 2023 12:37 UTC](https://discourse.nodered.org/t/buttons-to-change-grafana-time-range/80924/3 "2023-08-31T12:37:18Z")

</div>

Have a look [here](https://flows.nodered.org/flow/8e96b8630c4edc866aa0459354033c9b), it's all in the sample.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [8 December 2023 12:27 UTC](https://discourse.nodered.org/t/buttons-to-change-grafana-time-range/80924/5 "2023-12-08T12:27:00Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
