Skip to main content
100%

Pie Chart

✓ Published1🌍 Public
Ppvvaishnavi93@gmail.com
Last edited Mar 27, 2026
Created on Mar 27, 2026

This pie chart visualizes monthly expenses across five categories: Rent, Food, Travel, Shopping, and Bills. It uses the D3.js v7 library to compute arc paths with `d3.pie()` and `d3.arc()`, and renders each slice as an SVG path with labels positioned using `labelArc.centroid()`. A legend, built from the loaded CSV file, shows each category with its corresponding value and color from `d3.scaleOrdinal(d3.schemeCategory10)`.

AI-generated description
MIT Licensed

Similar vizzes