Skip to main content
100%

Assignment7 Pie Chart3

✓ Published0🌍 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
MIT Licensed

Similar vizzes