Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Reusable D3 pie Plot

Public visualization

Viewing a saved revision (read-only)

09f918f9eb2f410a8d3fd51ee88effbc

Fork of Fork of Reusable D3 pie Plot

0 stars1🌍 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