Reusable Donut Chart in D3 v4
A reusable donut chart for D3 v4 displays the distribution of inspection outcomes across six categories, with percentage labels connected to each slice. The code uses `d3.pie` to compute slice angles, `d3.arc` for the donut geometry, and `d3.scaleOrdinal` with `schemeCategory20` for coloring. Hovering over a slice or label triggers a custom tooltip rendered as an SVG circle, while `d3.format` handles numeric and percentage formatting. The chart is built from a TSV dataset and styled with CSS drop shadows and label lines.
AI-generated descriptionforked from <a href='http://bl.ocks.org/mbhall88/'>mbhall88</a>'s block: <a href='http://bl.ocks.org/mbhall88/b2504f8f3e384de4ff2b9dfa60f325e2'>A static, reusable donut chart for D3.js v4.</a>
forked from <a href='http://bl.ocks.org/Thanaporn-sk/'>Thanaporn-sk</a>'s block: <a href='http://bl.ocks.org/Thanaporn-sk/d57656bb56a99e615c9d60540d2491f7'>A static, reusable donut chart for D3.js v4.</a>