Skip to main content
100%

Fork of Fork of Reusable D3 pie Plot

✓ Published1🌍 Public
Eeeshani.boyapati@gmail.com
Last edited Mar 24, 2026
Created on Mar 24, 2026

This household expenses pie chart visualizes the proportional spending across eight categories, such as Housing, Food, and Education, with each slice labeled by its percentage of the total. The chart is rendered using the D3 v7 library, which uses `d3.pie()` to compute arc data, `d3.arc()` to generate the SVG paths, and `d3.scaleOrdinal()` with `schemeCategory10` for colors. A legend on the right side lists each category with its original value, and the entire visualization is created with SVG elements. Data is loaded from a local `expenses.csv` file using `d3.csv()`.

AI-generated description
MIT Licensed

Similar vizzes