🌍 Public
Viewing a saved revision (read-only)
2a80b2ac73aa4f5096bc7623027998f0
question-1 Pie Chart
This pie chart visualizes the distribution of animal species by leg length and width, with each slice representing a category and its proportional value. The chart reads CSV data from a GitHub repository and renders slices as SVG paths using `d3.pie()` and `d3.arc()`, with colors assigned via `scaleOrdinal`. Labels and a legend are generated with D3 selections, and the chart updates responsively to the window size. The reusable `pieChart` module sets width, height, data, and value accessor through a fluent interface.
AI-generated descriptionA demonstration of reusable scatter plot.