# XY Chart Tooltip - Is possible to use the if condition in the expression?

**URL:** <https://forum.inductiveautomation.com/t/xy-chart-tooltip-is-possible-to-use-the-if-condition-in-the-expression/96897>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 7, 2024, 12:30pm UTC](https://forum.inductiveautomation.com/t/xy-chart-tooltip-is-possible-to-use-the-if-condition-in-the-expression/96897 "2024-10-07T12:30:16Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 7, 2024, 2:17pm UTC](https://forum.inductiveautomation.com/t/xy-chart-tooltip-is-possible-to-use-the-if-condition-in-the-expression/96897/10 "2024-10-07T14:17:33Z")

</div>

You can have a look at [Perspective XY Chart xAxes tooltip text {dateX}](https://forum.inductiveautomation.com/t/perspective-xy-chart-xaxes-tooltip-text-datex/53580/) where I've "documented" some of my findings for tooltip formatting.

There's a link in there somewhere to the AM Charts documentation. If they don't support expressions then Ignition probably can't help you. (The XY Chart component is based on the AM Charts XY Chart.)

---

_[View the full topic](https://forum.inductiveautomation.com/t/xy-chart-tooltip-is-possible-to-use-the-if-condition-in-the-expression/96897)._
