Skip to main content
100%

pie chart

✓ Published1🌍 Public
Vvenigallajaanu@gmail.com
Last edited Apr 2, 2025
Created on Mar 31, 2025

This pie chart visualizes the total marks for six school subjects (telugu, hindi, english, maths, science, and social) aggregated from a comma-separated values dataset. It uses D3.js v7 to load the external CSV, compute sums with `d3.sum`, and generate the chart with `d3.pie` and `d3.arc`. Subjects are colored using `d3.scaleOrdinal` with `d3.schemeCategory10`, with labels placed via `arc.centroid` and an accompanying legend showing each subject and its total. The rendering uses SVG.

AI-generated description
MIT Licensed

Similar vizzes