Donut node shape?
node [shape=circle, style=wedged] to render nodes as pie charts.
Pies are nice, but there are times when I'd prefer donuts.
(Aside: Dear GitLab CSS developer: could you please reconsider your choice of color for inline code snippets? I associate
errors. Then again, I have a similar gripe with the default theme of the Prism syntax highlighter. Just me?)
I've read the FAQ item on custom shapes, but I'm still uncertain of the best way to proceed. Start with the circle definition?
<ellipse> elements with smaller radii. While less elegant than a custom node shape in Graphviz, this is probably the easiest option for my primary "in-browser" use case (using d3-graphviz). Thankfully, the Graphviz-generated SVG for
node [shape=circle, style=wedged] contains an unfilled transparent-stroke ellipse for each pie on which I can base the "holes" (smaller ellipses); punching the holes would be more difficult if the SVG contained only the wedge paths.
I'm still working out the details of the best way to calculate (relative to the pie), or otherwise parameterize, the size of the hole.
Advice, recommendations welcome.