Black Lives Matter. Please consider donating to Black Girls Code today.

Do not display x, y on hover for Scatter Plot

I want to have a custom tooltip on hover of a point instead of the default tooltip with x,y,and text.

I want to get rid of the x, y point values that it shows.
Can you please help me out?

Below is the fidlle:

I believe you’re looking for the hoveinfo trace attribute.

When set to 'text' only the content of the trace text field are shown on hover.

See example:

What if both custom text and x, y values are getting displayed instead of only custom text ?47%20PM

Would you mind sharing a reproducible example to help us debug?