How to center and fill an image on Dash's graph

Hi everyone!

I have a dcc.Graph component that is responsive, i.e., width and height are not fixed. I want to draw an image on this component so that it (1) fills the entire graph without leaving any empty space, but (1) must be centered on the graph. Cropping is allowed, and aspect ratio must be kept.

How do I do it? Appreciate it.

Hey @npnkhoi, welcome to the forums. I do not understand what you are trying to do. Could you rephrase your question?