adding annotations to a pie chart

Hello Bokeh team,

I am trying to add annotations to pie charts but I have some difficulties in finding the best algorithm to place them around the pie chart without overlapping between them

another issue is that when I try to expect the length of the text I get it in pixels and I fail to convert it to coordinates. any Ideas that could help!

thanks.

Hi,

I don't have an algorithm to suggest to you. It's possible some higher level tool but on top of Bokeh, ike Holoviews of Chartify, might have something built it. However, I might suggest you consider something different than pie charts altogether. Other types of charts (e.g bar or stacked bar) will be both simpler to annotate, as well as more visually faithful since they don't represent comparable quantities with areas (that scale as a square, not linearly).

Thanks,

Bryan

ยทยทยท

On Dec 24, 2018, at 05:38, Zayd MEKHAZNI <[email protected]> wrote:

Hello Bokeh team,

I am trying to add annotations to pie charts but I have some difficulties in finding the best algorithm to place them around the pie chart without overlapping between them
another issue is that when I try to expect the length of the text I get it in pixels and I fail to convert it to coordinates. any Ideas that could help!
<Auto Generated Inline Image 1.png>
thanks.

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/014a9e05-da97-46d9-af27-0d1c0373e86c%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
<Auto Generated Inline Image 1.png>