Skip to main content
100%

Activity_7.1

✓ Published0🌍 Public
Ssanjanaadapa7@gmail.com
Last edited Nov 5, 2024
Created on Nov 5, 2024
Forked from Hello VizHub

This pie chart visualizes the distribution of loan types from a CSV dataset loaded via `d3.csv`. Each slice is generated using `d3.pie()` and rendered as an SVG path with `d3.arc()`, colored by `d3.scaleOrdinal` and `d3.schemeCategory10`. The chart includes a legend with colored rectangles and text labels, while slice labels are placed using the arc’s `centroid` method. The code uses D3 v6, an SVG container, and explicit width, height, and margin settings.

AI-generated description
MIT Licensed

Similar vizzes