Skip to main content
100%

Pie Chart

✓ Published0🌍 Public
Hhappymail6
Last edited Jul 1, 2022
Created on Jun 30, 2022
Forked from Pie Chart

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 description

This is a sample d3 Pie chart. This will be later exported to angular.

MIT Licensed

Similar vizzes