Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 2 - Pie Chart

Public visualization

Assignment 2 - Pie Chart

1 star18🌍 Public
Ddandudivya98@gmail.com
Last edited Apr 13, 2024
Created on Apr 12, 2024

This pie chart visualizes vehicle registration counts by type, with each slice labeled with its value in thousands and accompanied by a color-coded legend. The visualization uses D3 v5’s `d3.pie` and `d3.arc` to generate the chart, `d3.scaleOrdinal` for slice colors, and `d3.format` for tick labels. Data is loaded asynchronously from a CSV file via `d3.csv`, and the chart is rendered as SVG with custom styling for text and legends.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed