✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

Is it possible to have two different text positions in a scatterplot?

I have categorical data, I’m seeking one side to have textpostion “middle left” and the other data to have textposition “middle right”.

I tired adding one part of the data as add_scatter and a different textposition but I don’t think that works. I take it the update_traces function applies to the full fig.

Would the work around be to add annotations?