Is it possible to apply post-processing to the value displayed by so.Text()? I want to create a "top 5 vs. bottom 5" style plot and my naive attempt is looking a bit odd:

I would like to do two things:
- Format the value of text to something like
f"{text:.2%}"
- set
halign to "right" if its position is above some threshold so that it appears inside the bar instead of being clipped.
Sidenote: I am a big fan of the flexibility of the objects API 🚀 though I must admit I haven't fully understood the intuition behind it yet, so it could very well be that this feature exists and that I just missed it in the docs because I've searched the wrong places.
Is it possible to apply post-processing to the value displayed by
so.Text()? I want to create a "top 5 vs. bottom 5" style plot and my naive attempt is looking a bit odd:I would like to do two things:
f"{text:.2%}"halignto"right"if its position is above some threshold so that it appears inside the bar instead of being clipped.Sidenote: I am a big fan of the flexibility of the objects API 🚀 though I must admit I haven't fully understood the intuition behind it yet, so it could very well be that this feature exists and that I just missed it in the docs because I've searched the wrong places.