🌍 Public
Viewing a saved revision (read-only)
ff263521a86d4930a8f669b1190b4929
Reusable D3 Scatter Plot
This example shows a pie chart representing the number of subjects each student has enrolled in, with color-coded slices, labels, and a legend. The visualization loads student data from a CSV file via `d3.csv`, and maps it to pie geometry using the `d3.pie` and `d3.arc` generators. Slices are rendered as SVG paths with a `d3.scaleOrdinal` color scale, while labels and legend items are positioned using arc centroids and fixed translations. The chart uses D3 v7 and renders within an SVG container.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.