π Public
Viewing a saved revision (read-only)
6bf54cbc14604837a69e33aca479fe22
RIAA Music Format Historical Trends
This streamgraph visualizes the changing revenue of music formats in the US from 1973 to 2019, using data from the RIAA. The chart, built with React and D3.js, stacks area layers for formats like CD, Cassette, and Streaming, with automatic label placement via `d3-area-label`. The visualization applies a blur to the data before stacking with a wiggle offset, and employs `d3.scaleTime`, `d3.scaleLinear`, and `d3.scaleOrdinal` for scales. An x-axis with grid lines is rendered using `d3.axisBottom`.
AI-generated descriptionStreamgraph with d3-area-label
This project demonstrates a streamgraph visualization using D3.js with automatic label placement using the d3-area-label library.
Features
- Stacked area chart (streamgraph) showing revenue data by format over time
- Automatic label placement using d3-area-label
- Interactive visualization built with React and D3.js
Dependencies
- React 19.1.0
- D3.js 7.9.0
- d3-area-label 1.6.0
Files
index.html- Main HTML file with import mapsindex.js- React application entry pointApp.js- Main React componentviz.js- D3 visualization logic with area labelsaxis.js- Axis renderingaxis-labels.js- Axis label renderingdata.csv- Sample revenue data