Streamlit and Plotly express

How can we move the category label of a horizontal bar chart to the right side just after the bar (as show in the picture) ? Also, how can we automatically wrap the text into two lines if it is too long?
image

Could you show your example code?

Also please refer to the โ€œhow to post a questionโ€ guide so we can help you and help us quickly understand the issue.