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

I want to use custom icon for the scatter markers. How to do it?


I need to use icon for the marker. How can i do it? Or even customize it with some kind of canvas or etc?

scatter traces don’t allow that at the moment. You’ll need to use layout.shapes.

Is it still not possible to add icons as markers ? I want to add icons(.png format) instead of dots in scatterplot using plotly.js.

1 Like

I would like to do the exact same thing! Have you figured out how to do that? Perhaps some hacky solution?

One hacky solution is to add layout images as suggested by @etienne (please see You won’t have hover for them but you can have a scatter trace with invisible points for the hover and then the layout images as icons.