# Easy Chart: Display Tag with string value

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489>\
**Category:** Ignition\
**Created:** [December 12, 2022, 10:19am UTC](https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489 "2022-12-12T10:19:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![majad](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@majad](https://forum.inductiveautomation.com/u/majad)\
**Post date:** [December 12, 2022, 10:19am UTC](https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489/1 "2022-12-12T10:19:15Z")

</div>

Hello,

i want to display my tag which has value type string in an Easy Chart. I got the different Status Tags with values like "On", "Off", "Standby" and so on.

If i change my Axis TYPE on Symbol i have matching strings on my y-axis but these also just match the integers. Is it even possible to display String tags in the chart?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 12, 2022, 10:43am UTC](https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489/2 "2022-12-12T10:43:33Z")

</div>

The Easy Chart is quite versatile, so I have no doubt that what you're asking can be accomplished. Unfortunately, I'm having some difficulty visualizing your question. Could you possibly do a mock up of what you are expecting?

Example:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/41d5a5794c989104374b358132a005423d98fdb8.png)

Also, you're saying that the values are coming from an integer tag, but the labels are coming from a corresponding but separate string tag?

---

<div class="post-metadata">

**Author:** ![majad](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@majad](https://forum.inductiveautomation.com/u/majad)\
**Post date:** [December 12, 2022, 10:55am UTC](https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489/3 "2022-12-12T10:55:30Z")

</div>

The Labels are only coming from a string Tag:  
fore example:  
 ![String](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7bc64e777d472ba4922d783388bbcb31160c808a.png)  
 ![string2](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/b/cbf6439d3694ac25d8aafd44108c4a4d0fef0405.png)

these i want to display in an Easy Chart with corresponding Labels on the axis:

 ![chart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/2/723360e59dd7dcf40dc6198cfdb212c4c65fe9bb.png)

Now in my Experience this works like 0 is "Ein", 1 is equivalent to "Aus" ... if i have an integer Tag which i don't have and which i would like to avoid Creating.

So the question is if it is possible to match the strings i get from my tag to the strings on the axis.

Hope i made my Problem more clear and thnak you for your help!

---

<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:** [December 12, 2022, 1:02pm UTC](https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489/4 "2022-12-12T13:02:52Z")

</div>

I think you will be disappointed. The [JFreeChart](https://www.jfree.org/jfreechart/api/javadoc/) library's CategoryAxis is what you are looking for, but I don't see any way it can be used with an XYPlot (which is the underlying plot type for the EasyChart), which only works with subclasses of ValueAxis.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 12, 2022, 4:19pm UTC](https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489/5 "2022-12-12T16:19:38Z")

</div>

You _might_ be able to do this on the 'classic' Chart component, with a fair amount of scripting.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 13, 2022, 3:41am UTC](https://forum.inductiveautomation.com/t/easy-chart-display-tag-with-string-value/67489/6 "2022-12-13T03:41:58Z")

</div>

It would be much simpler to convert the integers into strings for labeling purposes than it would be to convert strings to integers for charting purposes. I would go ahead and convert the tag to an int tag, and then use expression bindings and scripting as needed to display the values as strings.
