How to code to get all the stacked datapoint on mouse hovering of X axis shared charts in python plotly

This feature is now available as the 'x unified' hovermode in plotly figures, see the corresponding example.