Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I'm not aware of a single "combined" example but there is a basic Pie chart example here (docs.bokeh.org/en/latest/docs/examples/topics/pie/pie.html) and a Donut chart example here (docs.bokeh.org/en/latest/docs/examples/topics/pie/donut.html) so you would more or less just combine those two examples to get a chart like the one above. Commented Jan 9, 2023 at 20:09
  • @bigreddot Thanks for the reply. I thought about that. But it's not an easy one like before. That's why I tried here. Commented Jan 10, 2023 at 2:02
  • Well, the "easy on from before" was part of bokeh.charts which was barely functional and did not have a maintainer, so it had to be jettisoned from the main library. If you want to simplify things, it's probably possible to use annular_wedge with inner_radius=0 for the inner wedges, so that all levels can be created consistently. There might be higher level tools (e.g. holoviews or pandas-bokeh) that offer a multi-level pie chart, but I'm not sure. Commented Jan 10, 2023 at 17:08