Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment7 Pie Chart3

Public visualization

Viewing a saved revision (read-only)

c3428096c4074336a3d2736a3dc9e0e5

Assignment7 Pie Chart3

0 stars0🌍 Public
445.saiful@gmail.com
Last edited Mar 30, 2026
Created on Mar 30, 2026
Forked from Pie Chart

This pie chart visualizes monthly expenses by category, with proportional slices for Rent, Food, Travel, Shopping, and Bills. It uses D3 v7’s `d3.pie` and `d3.arc` generators to compute arc paths, rendered as SVG elements on a 900×500 canvas. A categorical color scale (`d3.scaleOrdinal` with `schemeCategory10`) fills each slice, while labels are positioned using a separate `labelArc` for readability. A legend on the right lists each category with its numeric value, sourced from the CSV data loaded via `d3.csv`.

AI-generated description