Fork of Fork of Circles with D3
✓ Published0🌍 Public
This example visualizes the distribution of wins and losses for a specific year (2022) using a pie chart, with green representing wins and red representing losses. The chart is rendered as an SVG using D3.js v7, loading data from a CSV file hosted on GitHub Gists. The code employs d3.pie and d3.arc to compute and draw the arcs, while d3.scaleOrdinal maps outcomes to colors. A legend and title are appended to clarify the categories and the year, with the data filtered by the target year before visualization.
AI-generated descriptionMIT Licensed