Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published1🌍 Public
Vvishnupriya eupuri
Last edited Mar 28, 2024
Created on Mar 27, 2024

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 description
MIT Licensed

Similar vizzes