Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

CarPerformance PieChart

Public visualization

Viewing a saved revision (read-only)

f07df09a8c424df9a690a3863fc9743c

CarPerformance PieChart

0 stars0🌍 Public
Ssowjanya
Last edited Oct 25, 2025
Created on Oct 25, 2025
Forked from D3 Starter

This pie chart visualizes how vehicles in the CarPerformance dataset are distributed across three horsepower ranges: low (≤120 HP), medium (121–160 HP), and high (>160 HP). Each slice’s size reflects the count of vehicles in that category, with colored segments and a legend for identification. The visualization loads data from a CSV file using `d3.csv`, then applies `d3.pie` and `d3.arc` generators to create the slices. A `d3.scaleOrdinal` color scale maps the categories to distinct colors, while `arcGen.centroid` positions the labels within each slice.

AI-generated description