Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment2_D3

Public visualization

Assignment2_D3

0 stars0🌍 Public
VVijay Sheru
Last edited Apr 13, 2024
Created on Apr 13, 2024

This visualization presents a pie chart depicting the number of vehicles seized across different states of the United States. The chart uses a standard donut layout with color-coded slices for each state, displaying the raw count value for each segment. Accompanying the chart is a legend that maps the colors to their respective states and values. The implementation utilizes D3 version 5, specifically the `pie`, `arc`, `scaleOrdinal`, and `format` APIs, to process and render the data as SVG elements. The data is sourced from a CSV file hosted on GitHub, fetched via the `d3.csv` method, and processed to calculate the total before generating the visualization.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed