Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_7.1

Public visualization

Viewing a saved revision (read-only)

874bcfed5d654f0cbddaf0644e8aa41e

Activity_7.1

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