Scatter plot hover text not working for same X axis points in Javascript

In my scenario, there are more than 4 scatter points coming on same x axis but different y axis coordinates. In this scenario, it shows the hover text only for 4 point and does not show anything for remaining scatter points.
And if add hoverinfo manually for each data point then it does not show multiple hover text for overlapping points.

Do I have to use any property or what will be the way to resolve it?

image

@etienne Please help if have any recommendation for this.