# InfluxDB+Grafana persistence and graphing

**URL:** <https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761>\
**Category:** Tutorials & Examples\
**Tags:** influxdb, graphs, grafana\
**Created:** [September 1, 2016, 5:56pm UTC](https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761 "2016-09-01T17:56:35Z")\
**Posts on this page:** 1\
**Showing post:** 313

<div class="post-metadata">

**Author:** ![martiniman](https://community.openhab.org/user_avatar/community.openhab.org/martiniman/32/60179_2.png) [@martiniman](https://community.openhab.org/u/martiniman)\
**Post date:** [May 1, 2017, 5:04pm UTC](https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761/313 "2017-05-01T17:04:55Z")

</div>

How to do `Daily` graphs from one power counter Item using Grafana.

1. Here simple Power counter graph:  
 ![](https://community-openhab-org.s3-eu-central-1.amazonaws.com/original/2X/e/e6f5ff775c16a4981099cea9704e471c20857bf0.png)

2. Add `Trasformation - difference` field:  
 ![](https://community-openhab-org.s3-eu-central-1.amazonaws.com/original/2X/6/69482949031668f4347c4a329d44562d433e388c.png)

3. Change `GROUP BY` to ` time(1d)`  
 ![](https://community-openhab-org.s3-eu-central-1.amazonaws.com/original/2X/2/27aaa7c158ed1f776e2208e4f809dac371911e4a.png)

4. Change draw mode to `Bars`:  
 ![](https://community-openhab-org.s3-eu-central-1.amazonaws.com/original/2X/6/6e5386a40e35886da94881889670d9a3e07b592d.png)

---

_[View the full topic](https://community.openhab.org/t/influxdb-grafana-persistence-and-graphing/13761)._
