Skip to main content
100%

Pie Chart with Interactive Color Legend

✓ Published2🌍 Public
EEri Kim
Last edited Apr 10, 2023
Created on Mar 4, 2023
Forked from MoMA Streamgraph

This pie chart visualizes the distribution of artwork classifications in the MoMA collection, using data loaded from a CSV file. Hovering over a pie slice displays a tooltip showing the classification label and count, while an interactive legend on the right highlights the corresponding slice when moused over. The chart is built with D3.js v7, using `pie()` and `arc()` for slice generation, `scaleOrdinal` with `schemeTableau10` for colors, and transitions for opacity changes during legend interactions.

AI-generated description

I made a pie chart using the classification column in MoMA dataset. When you hover over an area, it displays a tooltip with the label and count. The color legend is also interactive. When you mouseover a legend, the corresponding pie area is highlighted.

ISC Licensed

Similar vizzes