🌍 Public
Viewing a saved revision (read-only)
383f6d2055b14a8b8da2c1b4fc30041d
Activity 7 Question 1
This example shows a classic pie chart built with D3.js, where each slice represents a category from a CSV dataset loaded remotely via `d3.csv`. The chart uses an ordinal color scale, and a legend lists each category alongside its subcategory. The code generates SVG paths with the `d3.arc` and `d3.pie` generators, and includes placeholder axis labels despite being a pie chart. The visualization renders entirely in SVG, with the legend placed to the right of the chart and a white stroke separating each slice.
AI-generated descriptionA demonstration of how to start using D3 version 6.