MoMA Streamgraph
This visualization displays the most used mediums in MoMA’s collection over time as a streamgraph, with each colored layer representing a medium like Lithograph or Ink. The chart uses d3.stack with a wiggle offset to create the flowing shapes, applies smoothing via array-blur, and labels areas using the d3-area-label library. Hovering an area highlights it with a white border, and a legend helps identify smaller layers. Data comes from a CSV file of MoMA artworks, parsed and scaled by year.
AI-generated descriptionStreamgraph with labels
x data is also parsed and scaled as date/year.
I filled in the missing values that were creating white gaps. I also applied smoothing.
Using d3-area-label, I added labels in the streampgrah. For labels that are too small, color legend is available.
I also added a hover effect so when you hover an area, it is outlined with a white border.
References:
https://d3-graph-gallery.com/graph/streamgraph_template.html