# Chart real time data based on encoder input - length counter

**URL:** <https://forum.inductiveautomation.com/t/chart-real-time-data-based-on-encoder-input-length-counter/17449>\
**Category:** Ignition\
**Created:** [March 21, 2018, 3:52pm UTC](https://forum.inductiveautomation.com/t/chart-real-time-data-based-on-encoder-input-length-counter/17449 "2018-03-21T15:52:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j.havrilla](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@j.havrilla](https://forum.inductiveautomation.com/u/j.havrilla)\
**Post date:** [March 21, 2018, 3:52pm UTC](https://forum.inductiveautomation.com/t/chart-real-time-data-based-on-encoder-input-length-counter/17449/1 "2018-03-21T15:52:14Z")

</div>

I would like to show the real time data from sensors(y axis) based on encoder length counter input (x axis) and wanted to know how to do this.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 21, 2018, 4:03pm UTC](https://forum.inductiveautomation.com/t/chart-real-time-data-based-on-encoder-input-length-counter/17449/2 "2018-03-21T16:03:15Z")

</div>

You’ll have to use the classic Chart in XY Plot mode. Create your dataset with the x-axis values in the first column, and one or more y-axis values in the other columns.

---

<div class="post-metadata">

**Author:** ![j.havrilla](https://avatars.discourse-cdn.com/v4/letter/j/f07891/32.png) [@j.havrilla](https://forum.inductiveautomation.com/u/j.havrilla)\
**Post date:** [March 21, 2018, 5:10pm UTC](https://forum.inductiveautomation.com/t/chart-real-time-data-based-on-encoder-input-length-counter/17449/3 "2018-03-21T17:10:08Z")

</div>

The encoder length data is a float and I tried this previously and the dataset gave me errors as wrong data type.on the encoder for the x axis.
