Show Eng Units in a label of pen of the easychart

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

The eng units should be showed to near the tag value

Do you have any suggestions?

Thank you very much

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) docs page.

A really simple example might look something like this:

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

Hi Perry

Perfect!!! it works correctly

Andrea