Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity7.1_Q1

Public visualization

Viewing a saved revision (read-only)

40a4a1daa48d40599f19d93d6f51e19c

Activity7.1_Q1

0 stars0🌍 Public
Bbhargavipagolu2025@gmail.com
Last edited Nov 10, 2025
Created on Nov 9, 2025

This pie chart displays the average horsepower distribution across the top 10 car makers, with all remaining manufacturers aggregated into an "others" category. The visualization uses D3 v7's `d3.pie` and `d3.arc` generators to compute slice geometry, with `d3.scaleOrdinal` and `d3.schemeTableau10` providing color encoding. Data loads from a remote CSV file containing smartphone specifications, which the code aggregates and normalizes to percentages. Each slice includes percentage labels positioned via `arc.centroid`, while an HTML legend to the right maps colors to maker names.

AI-generated description