# Mouse Hover over XY chart to obtain the X axis value

**URL:** <https://forum.inductiveautomation.com/t/mouse-hover-over-xy-chart-to-obtain-the-x-axis-value/77110>\
**Category:** Ignition\
**Created:** [July 30, 2023, 1:15pm UTC](https://forum.inductiveautomation.com/t/mouse-hover-over-xy-chart-to-obtain-the-x-axis-value/77110 "2023-07-30T13:15:33Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:56pm UTC](https://forum.inductiveautomation.com/t/mouse-hover-over-xy-chart-to-obtain-the-x-axis-value/77110/6 "2023-08-05T12:56:52Z")

</div>

get some idea from the following post.

> [@Get value from hovered slice in a Pie Chart](https://forum.inductiveautomation.com/t/get-value-from-hovered-slice-in-a-pie-chart/41205):
>
> Anyone knows how to get the value from the currently hovered slice in a pie chart? In the below figure, the value 21438 should be collected, and written to a custom property in e.g. another component: [image] Ignition version 8.1.0 Thanks!

by enabling the selection, I can now get the index value.  
the format is:

```auto
../XYChart.props.selection.data[0].index

```

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/2/42abb56e9e081fd87be1fbf4404672799e6bc7c4.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/mouse-hover-over-xy-chart-to-obtain-the-x-axis-value/77110)._
