# Show Eng Units in a label of pen of the easychart

**URL:** <https://forum.inductiveautomation.com/t/show-eng-units-in-a-label-of-pen-of-the-easychart/14400>\
**Category:** Ignition\
**Created:** [May 26, 2017, 1:41pm UTC](https://forum.inductiveautomation.com/t/show-eng-units-in-a-label-of-pen-of-the-easychart/14400 "2017-05-26T13:41:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.minu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.minu/32/3326_2.png) [@andrea.minu](https://forum.inductiveautomation.com/u/andrea.minu)\
**Post date:** [May 26, 2017, 1:41pm UTC](https://forum.inductiveautomation.com/t/show-eng-units-in-a-label-of-pen-of-the-easychart/14400/1 "2017-05-26T13:41:17Z")

</div>

Hi to everybody

I need to show the eng units of the tag in the label of the pen of the easy chart.  
I insert a picture for to better understand the my request

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/32f08ad5d1d80645f6b773f3c4e7e0eea6f4023d.PNG)

The eng units should be showed to near the tag value

Do you have any suggestions?

Thank you very much

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [May 26, 2017, 3:29pm UTC](https://forum.inductiveautomation.com/t/show-eng-units-in-a-label-of-pen-of-the-easychart/14400/2 "2017-05-26T15:29:36Z")

</div>

You should be able to add whatever label information you want (or override the default xtrace label) through the xtracelabel extension function. Check the extension function docs on the [Easy Chart] ([https://docs.inductiveautomation.com:8443/display/DOC79/Easy+Chart](https://docs.inductiveautomation.com:8443/display/DOC79/Easy+Chart)) docs page.

A really simple example might look something like this:

```auto
def getXTRaceLabel(self, chart, penName, yValue):
    if self.selectedXValue:
        return str(self.selectedXValue) + " rpm":

```

---

<div class="post-metadata">

**Author:** ![andrea.minu](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrea.minu/32/3326_2.png) [@andrea.minu](https://forum.inductiveautomation.com/u/andrea.minu)\
**Post date:** [May 29, 2017, 6:46am UTC](https://forum.inductiveautomation.com/t/show-eng-units-in-a-label-of-pen-of-the-easychart/14400/3 "2017-05-29T06:46:35Z")

</div>

Hi Perry

Perfect!!! it works correctly

Andrea
