Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7.1_Question1

Public visualization

Viewing a saved revision (read-only)

d452b6ca9b1544d09c87ffd79ecf41e1

Activity7.1_Question1

0 stars2🌍 Public
GGunna,Praneeth Reddy
Last edited Nov 9, 2025
Created on Nov 8, 2025
Forked from Activity7_tutorial

A pie chart displays the average horsepower for the top 10 car makers, with all remaining makers aggregated into an "Others" slice. Slices and labels are rendered using SVG paths and text elements via D3's `pie` and `arc` APIs, with a color legend on the right. The code loads car data from a CSV file using `d3.csv`, aggregates values with `d3.sum`, and uses `d3.arc` for slice geometry and `d3.scaleOrdinal` for categorical colors. Axis labels are added as text annotations, though the chart itself is circular.

AI-generated description