Skip to main content
100%

Interactive Graph

✓ Published0🌍 Public
SStuart Sessions
Last edited May 14, 2024
Created on May 14, 2024
Forked from PL Bar Chart

This example renders an interactive pie chart using D3.js (v6) to display football player statistics from a CSV file. The visualization uses `d3.pie()` to compute arc angles and `d3.arc()` to generate SVG paths, with a custom color scale via `d3.scaleOrdinal()`. Data is loaded from a GitHub-hosted CSV and processed with a custom `parseData` function that converts jersey numbers to numeric values. The chart is built inside an SVG container with fixed dimensions, and each slice is styled with black fills and stroke outlines.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes