Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 2 Question1

Public visualization

Viewing a saved revision (read-only)

42bbee00e9e24bbdb54fe339bec102ca

Assignment 2 Question1

0 stars0🌍 Public
Mmeghna.reddy700@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024

This pie chart visualizes genre distribution from survey data, showing the proportion of responses in the "Less than 3" category. The code loads CSV data from a GitHub repository and uses d3.pie and d3.arc to generate SVG path segments, with d3.scaleOrdinal assigning colors to genres. Interactive hover tooltips appear via appended title elements, and the chart includes a legend and percentage labels positioned at arc centroids. The visualization renders as a static SVG with D3 v7, totaling 600×600 pixels.

AI-generated description

A demonstration of pie chart