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