Assignment 2
✓ Published0🌍 Public
This example shows the distribution of IMDb ratings for a set of movies, presented as a pie chart with a separate legend listing each movie title and its corresponding rating. The chart uses D3.js v5 to load CSV data from a GitHub gist, bind it to SVG path segments via the `pie` and `arc` generators, and color-code slices using `scaleOrdinal`. Text labels, positioned with `arcGenerator.centroid`, display each value, while the legend renders rectangles and text elements. The data is parsed as numbers before rendering, and the visualization is sized to 960 by 500 pixels.
AI-generated descriptionPIE CHART Top Movie Ratings.
MIT Licensed