Skip to main content
100%

Assignment 2

✓ Published0🌍 Public
Yyellahemalatha@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Piechart ICE7

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 description

PIE CHART Top Movie Ratings.

MIT Licensed

Similar vizzes