# X-Value in XY Chart Bullet Tooltip

**URL:** <https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998>\
**Category:** Ignition\
**Tags:** ignition80, perspective\
**Created:** [November 15, 2019, 2:12pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998 "2019-11-15T14:12:29Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [November 15, 2019, 2:12pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/1 "2019-11-15T14:12:30Z")

</div>

The default text for the bullet tooltip is `{name}: [bold]{valueY}[/]` and the documentation simply says

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/657aebe05100c43f91b6a8c0b855fca33552c35d.png)

in regards to how to format the `text` of a bullet tooltip in an XY line chart. Is there any way to get the x-value in there? I’ve tried `valueX`, `x`, `value` all to no avail. Am I missing something or is it just not possible?

---

<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:** [November 15, 2019, 4:37pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/2 "2019-11-15T16:37:06Z")

</div>

It looks like `{valueX}` should be correct, but maybe you could also use a series name?  
[https://www.amcharts.com/docs/v4/concepts/formatters/formatting-strings/](https://www.amcharts.com/docs/v4/concepts/formatters/formatting-strings/)

---

<div class="post-metadata">

**Author:** ![md.szyman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/md.szyman/32/9240_2.png) [@md.szyman](https://forum.inductiveautomation.com/u/md.szyman)\
**Post date:** [November 15, 2019, 4:57pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/3 "2019-11-15T16:57:18Z")

</div>

Ah, I got it.

Apparently it’s `{valueX}`, `{categoryX}` or `{dateX}` depending on how the value is treated. In my case, I need `{dateX}`.

Thank you!

---

<div class="post-metadata">

**Author:** ![pascal](https://avatars.discourse-cdn.com/v4/letter/p/e9a140/32.png) [@pascal](https://forum.inductiveautomation.com/u/pascal)\
**Post date:** [June 8, 2020, 10:26am UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/4 "2020-06-08T10:26:20Z")

</div>

Is it possible to “export” this dateX into another component (a label for example) ?

---

<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:** [June 8, 2020, 3:36pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/5 "2020-06-08T15:36:54Z")

</div>

No, these are special formatting strings that the XYChart’s internal rendering code (coming from amcharts, see above) knows how to format.

---

<div class="post-metadata">

**Author:** ![tmahaf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tmahaf/32/23492_2.png) [@tmahaf](https://forum.inductiveautomation.com/u/tmahaf)\
**Post date:** [April 19, 2022, 12:10pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/6 "2022-04-19T12:10:16Z")

</div>

Found the info in here very useful. It would be awesome if Inductive got this into the official documentation.

I noticed for my chart {dateX} was the ticket, {valueX} would not render anything for my time series data.

---

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [August 5, 2023, 12:34pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/7 "2023-08-05T12:34:32Z")

</div>

If I want to take this {categoryX} value and display it on a separate label component, how do I link it?

I tried to create a custom property within the XY chart, and link it to the tooltip text, it shows only a static "{categoryX}" text string, not the actual tooltip value.

---

<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:** [August 5, 2023, 12:40pm UTC](https://forum.inductiveautomation.com/t/x-value-in-xy-chart-bullet-tooltip/29998/8 "2023-08-05T12:40:25Z")

</div>

You can't. This was explained by PGriffith above in post 5.
