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