q2_piechart
✓ Published0🌍 Public
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 descriptionMIT Licensed