# Time Series - Display analog and digital values separately

**URL:** <https://community.grafana.com/t/time-series-display-analog-and-digital-values-separately/80194>\
**Category:** Time Series Panel\
**Created:** [January 22, 2023, 12:46pm UTC](https://community.grafana.com/t/time-series-display-analog-and-digital-values-separately/80194 "2023-01-22T12:46:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hennerich](https://avatars.discourse-cdn.com/v4/letter/h/df705f/32.png) [@hennerich](https://community.grafana.com/u/hennerich)\
**Post date:** [January 22, 2023, 12:46pm UTC](https://community.grafana.com/t/time-series-display-analog-and-digital-values-separately/80194/1 "2023-01-22T12:46:20Z")

</div>

- What Grafana version and what operating system are you using?  
v 9.3.2 running in Docker

- **What** are you trying to achieve?  
I record analog temperature values and digital switching states (e.g. of pumps). I would like to display these simultaneously in a graph to make the interdependencies visible.  
However, these values should not overlap (completely). Ideally, digital values are displayed below the analog values.

- **How** are you trying to achieve it?  
My first try looks like this:  

These are the database queries

```auto
from(bucket: "iobdata")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "modbus.0.holdingRegisters.6_TempPufferO")
  |> filter(fn: (r) => r["_field"] == "value")
  |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
  |> yield(name: "last")

```

and

```auto
from(bucket: "iobdata")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "modbus.0.coils.22_AnfBrenner")
  |> filter(fn: (r) => r["_field"] == "value")
  |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
  |> yield(name: "last")

```

- What happened?  
The analog values are displayed as expected. The digital values overlap the analog values at full height.  
Here, a user had created a solution for “stacked” digital assets with a workaround.  
[Grafana true/false seit Update nicht mehr möglich](https://forum.iobroker.net/topic/48972/grafana-true-false-seit-update-nicht-mehr-m%C3%B6glich)  
I would like to have something like this for an analog and a digital value.

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