Pie Chart
✓ Published0🌍 Public
This pie chart visualizes IMDB ratings for Marvel and DC movies, comparing titles like The Avengers, Infinity War, and The Dark Knight. The chart uses d3.pie to compute arc angles from the data values and d3.arc to generate SVG path segments, with d3.scaleOrdinal assigning categorical colors. Each slice responds to mouseover and click events, displaying a tooltip with the movie name and rating via d3.event positioning. Data loads from a comma-separated CSV file pulled from a GitHub gist, with the visualization rendering entirely as SVG within a fixed-size viewport.
AI-generated descriptionThis is a sample d3 Pie chart. This will be later exported to angular.
MIT Licensed