Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

q2_piechart

Public visualization

q2_piechart

0 stars0🌍 Public
Mmaddineni2112@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025
Forked from D3 Starter

This pie chart visualizes the share of cars by fuel type from the car_sales_kaggle dataset, displaying each category’s value and percentage directly on the slices and in a right-side legend. Built with D3 v7, it loads CSV data, aggregates counts per category, and uses `d3.pie`, `d3.arc`, and `d3.rollups` to compute and render arcs with leader lines and labels. A Tableau10 ordinal color scale distinguishes categories, while the SVG output includes hover tooltips via `title` elements and a clean, responsive layout.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed