Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 Starter -(pie chart)

Public visualization

Viewing a saved revision (read-only)

c24a618230b24a2586f3a93faa8f386a

Fork of D3 Starter -(pie chart)

0 stars0🌍 Public
Ssowjanya
Last edited Oct 25, 2025
Created on Oct 25, 2025

This pie chart visualizes the distribution of car horsepower into three ranges (Low ≤120 HP, Medium 121–160 HP, and High >160 HP) using data from a CarPerformance.csv dataset. The chart uses d3.csv to load the data, d3.scaleOrdinal for color encoding, and d3.pie with d3.arc to generate SVG path elements. Labels are positioned using arc centroid calculations, and a legend appears in the top-right corner. The visualization demonstrates how D3 v7 transforms tabular data into an interactive-free categorical pie chart with clean SVG rendering.

AI-generated description