Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Circles with D3

Public visualization

Fork of Fork of Circles with D3

0 stars0🌍 Public
Ppraveennayak1702@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

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 description

Comments

Sign in to join the discussion.

MIT Licensed