# Digital signals in chart

**URL:** <https://forum.inductiveautomation.com/t/digital-signals-in-chart/31394>\
**Category:** Ignition\
**Created:** [January 19, 2020, 12:58am UTC](https://forum.inductiveautomation.com/t/digital-signals-in-chart/31394 "2020-01-19T00:58:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamuelsenLarsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samuelsenlarsen/32/11901_2.png) [@SamuelsenLarsen](https://forum.inductiveautomation.com/u/SamuelsenLarsen)\
**Post date:** [January 19, 2020, 12:58am UTC](https://forum.inductiveautomation.com/t/digital-signals-in-chart/31394/1 "2020-01-19T00:58:33Z")

</div>

Hi

Is there a way to present digital signals in easychart like in picture below, with a zero offset:

 ![2020-01-19_01-42-08](https://us1.discourse-cdn.com/inductiveautomation/original/2X/d/d43951f0255967d9b659273c00ed959a3628f180.jpeg)

I think this is a intuitive way to read digital signals.

Regards Stian Larsen

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 19, 2020, 1:46am UTC](https://forum.inductiveautomation.com/t/digital-signals-in-chart/31394/2 "2020-01-19T01:46:08Z")

</div>

You can use the [digital offset option in the EasyChart](https://docs.inductiveautomation.com/display/DOC80/Easy+Chart+-+Digital+Offset), though it’s not quite the same. Would the [Status Chart](https://docs.inductiveautomation.com/display/DOC80/Vision+-+Status+Chart) be suitable?

---

<div class="post-metadata">

**Author:** ![SamuelsenLarsen](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/samuelsenlarsen/32/11901_2.png) [@SamuelsenLarsen](https://forum.inductiveautomation.com/u/SamuelsenLarsen)\
**Post date:** [January 19, 2020, 9:34pm UTC](https://forum.inductiveautomation.com/t/digital-signals-in-chart/31394/3 "2020-01-19T21:34:26Z")

</div>

I am using the digital offset in easychart todag, but it is not always easy to read with many digital signals in the same plot.

The digital offset gives an offset on the signals value, that i great. And for render style “Digital” I can make it look pretty ok (Digital gap = 1.3), like this…

![2020-01-19_22-15-06](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b087d7ed1e3ea228290a0c118695e4cd9990f37b.jpeg)

but when I change the render style to “Digital Area”, something strange happens…

![2020-01-19_22-23-34](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/fe7081efbd9544eb4894612ef9a32847ca590329.jpeg)

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [January 20, 2020, 5:00pm UTC](https://forum.inductiveautomation.com/t/digital-signals-in-chart/31394/4 "2020-01-20T17:00:27Z")

</div>

I haven’t worked with digital history for a bit, but remember encountering the same thing–the bottom of digital area isn’t offset. It’d be a lot slicker if it was.

---

<div class="post-metadata">

**Author:** ![tordvd](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tordvd/32/11525_2.png) [@tordvd](https://forum.inductiveautomation.com/u/tordvd)\
**Post date:** [February 5, 2020, 12:07pm UTC](https://forum.inductiveautomation.com/t/digital-signals-in-chart/31394/5 "2020-02-05T12:07:37Z")

</div>

Instead of using digital offset, you can place each signal in a different subplot, with renderer “digital area”. It will the look like this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/42e9be28c2346a5bcdb6a7b881d9579b1b2e03e4.png)  
If you are going to make something dynamic, you might consider using a tag picker, and dragging tags into your chart. Then everytime you add a tag to the chart, also create a subplot for this tag.  
Here is a sample code for something i used earlier for dragging tags into the easy chart:

```auto
tagPens = self.tagPens
subPlots = self.subplots
	     
	for tag in paths:
	    tagPath = tag
	    splitTag = tag.split("/")
	    name = splitTag[-2].replace("_", "-")
	    name = name.upper()     
	    newRow = [name, tagPath, "MinMax", "Default Axis", 1, 1, system.gui.color(255, 85, 85, 255), "", 1, 1, 0, 1, 0, "", 0, 0, 0, 1, 0, 0] 
	    self.tagPens = system.dataset.addRow(tagPens, newRow)

```

Then add at the end:

```auto
newPlot= [1,0,""]
self.subplots = system.dataset.addRow(subPlots , newPlot)

```

Or even easier like @witman suggested. Status chart of the same two signals:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/fe6a4e2e34e2cef2f6409af8b6522456d91e34c7.png)
