# How to do a dynamic tooltip in the XYChart Component

**URL:** <https://forum.inductiveautomation.com/t/how-to-do-a-dynamic-tooltip-in-the-xychart-component/114061>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [February 19, 2026, 10:13am UTC](https://forum.inductiveautomation.com/t/how-to-do-a-dynamic-tooltip-in-the-xychart-component/114061 "2026-02-19T10:13:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [February 20, 2026, 10:47am UTC](https://forum.inductiveautomation.com/t/how-to-do-a-dynamic-tooltip-in-the-xychart-component/114061/3 "2026-02-20T10:47:52Z")

</div>

I asked more or less the same here if it can help

> [@XY Chart Tooltip - Is possible to use the if condition in the expression?](https://forum.inductiveautomation.com/t/xy-chart-tooltip-is-possible-to-use-the-if-condition-in-the-expression/96897):
>
> Good morning, I'm struggling trying to display the tooltip in an XY Chart basing on a condition. I would like to change the text depending on the value of a series property. In my case I have the "stato\_lotto" property and I'm trying to do something like this: if( '{stato\_lotto}' = 'NO', 'Posizione: [bold] {nomeTooltip}' + "[/] \n" , 'Lotto: [bold] {stato\_lotto}' + "[/] \n" ) The tooltip is shown, but it doesn't change based on {stato\_lotto} value. Is this approach wrong?

---

_[View the full topic](https://forum.inductiveautomation.com/t/how-to-do-a-dynamic-tooltip-in-the-xychart-component/114061)._
