☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Upsidedown LabelSet

Community Support
odadoun
odadoun

Hi,

to display some text inside my pie chart I use LabelSet

df['textdisplayed'] = df['permanentdisplay'].astype(str)
.str.pad(40, side = "left")
labels = LabelSet(x=0, y=0,text='textdisplayed',
angle=cumsum('angle', include_zero=True),
text_font_size="10pt",source=srcfiltered)

(I use pad to shift the text to edge of the circle)

Now, I would like to rotate the text by 180° when the angle is between [90°, 270°] to be able to read it. How can I proceed ?
By advance thank you.
Olivier

⌁   Link to post

End of archived discussion · Replies are disabled