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!
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).
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.