Skip to main content
100%

Fork of Responsive Scatter Plot

✓ Published0🌍 Public
Ppraveennayak1702@gmail.com
Last edited Mar 28, 2024
Created on Mar 27, 2024

This example visualizes the distribution of wins and losses across different teams for a specific year, using a pie chart to show each team’s share of total wins. The chart is generated from a CSV dataset loaded via `d3.csv`, with data filtered for the year 2020. Using D3.js v7, the code computes win percentages per team, applies a `d3.scaleOrdinal` color scheme, and renders the arcs with `d3.pie` and `d3.arc`. A legend, built with SVG rectangles and text, identifies each team’s color, while the layout is fixed at 400x400 pixels with a responsive margin.

AI-generated description
MIT Licensed

Similar vizzes