Look at the ‘level’ argument for renderer instantiation (p.line / p.image_url ). I think there is underlay/overlay etc. you can assign to put the send the image “to the back”.
Thanks. Found that now, so I thought it should be something like this, but it still doesn’t work. Whatever levels I seem to use, the line doesn’t appear.
The problem (in your example at least) is that your line is using a Date (6 dates around 2021) for its X values, and your image is being placed at 0,0 with a width/height of 1,1… which I believe means it is getting anchored at Jan 1, 1970 and is 1 millisecond wide. So in your example… the image and the line ARE there… you just gotta zoom in “a bit” (lol) to see the image.
@gmerritt123 is exactly correct, the underlying units of a datetime axis are “milliseconds since epoch” so you’d need to supply an appropriate width/height in those units. Alternatively, you could add secondary axis scales with (0, 1) ranges, and point the glyph at those, instead of the default ones.