Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of piechart

Public visualization

Viewing a saved revision (read-only)

d53457fd2d1d460ab141f076f468c0b9

Fork of piechart

0 stars0🌍 Public
Kkovuribalanagavinay@gmail.com
Last edited Oct 26, 2025
Created on Oct 26, 2025
Forked from piechart

This pie chart visualizes the average car price by brand, using a dataset of 50 vehicles across ten manufacturers. Each slice represents a brand, with its size determined by the mean price of its cars, and labels display the brand name and average value. The chart is built with D3 v7, using `d3.pie()` to compute arc data, `d3.arc()` to render the slices as SVG paths, and `d3.scaleOrdinal` with the `schemeSet3` color palette. Average prices are calculated via `d3.rollup` and `d3.mean` before the pie is drawn.

AI-generated description