Showing x axis value on click in scatter plots

I am using Plotly for Javascript (Plotly.js) and specifically Scatter plots. I want the user to be able to see the exact X axis value at any point he/she clicks on (not when clicking on a data point but when clicking anywhere).

Is this possible? How?