☰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

Pie charts as graph nodes

Community Support
alimanfoo
alimanfoo

Hi there, very nice to see support for graphs/networks in the latest release. Would it be possible to plot a network where each node is a pie chart? This is essential for the network plots I need to make, where each node represents a collection of objects from different locations, and we size the node by total number of objects then colour pie wedges within the node to represent the number of items from each location.

⌁   Link to post
Bryan
Bryan

Hi

My suggestion for this would be to use the built in support to make a regular graph with e.g. circles for nodes, then make the nodes invisible (by setting the line and fill colors to None). Then you can use the coordinates of the invisible nodes as input for wedge glyphs that you can use to draw small pie charts at the node positions. Hopefully that's enough to get started otherwise I can try to elaborate more.

Thanks,

Bryan

···

On Sep 1, 2017, at 17:07, alimanfoo via Bokeh Discussion - Public <bokeh@continuum.io> wrote:

Hi there, very nice to see support for graphs/networks in the latest release. Would it be possible to plot a network where each node is a pie chart? This is essential for the network plots I need to make, where each node represents a collection of objects from different locations, and we size the node by total number of objects then colour pie wedges within the node to represent the number of items from each location.

--
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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/6f1d4d4e-92f6-43b8-81b6-d5ab1e0efc6f%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

⌁   Link to post

End of archived discussion · Replies are disabled