Reusable D3 Pie Chart

Dataset: data.csv. This chart shows a synthetic Household Budget Allocation across categories. Each slice’s label shows the category and its percentage of the total.

Tip: To reuse on any categorical dataset, keep two columns: category and value. You can call pieChart.update(newData) to redraw.