Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_7.1.1

Public visualization

Activity_7.1.1

0 stars0🌍 Public
CCodeNinja
Last edited Nov 3, 2024
Created on Nov 3, 2024
Forked from Pie Chart

A pie chart displays 2022 U.S. auto sales by brand, with each slice sized by year-to-date sales. Percentages and sales values (in thousands) are shown in a legend. Built with D3 v5, the visualization loads CSV data via `d3.csv`, computes pie arc paths with `d3.pie`, and renders them as SVG paths using `d3.arc`. A sequential `d3.scaleOrdinal` color scheme distinguishes brands. The chart is centered in a 960×450 SVG canvas, with legends positioned to the right.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed