Mouse Hover over XY chart to obtain the X axis value

get some idea from the following post.

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

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

image