'Showing x axis value on click in scatter plots

Showing x axis value on click in scatter plots

I am using Plotly for Javascript (Plotly.js) ans specifically Scatter plots. I want the user to be able to see the 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?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source