music streaming
This stacked area chart shows the evolution of music formats (CD, vinyl, digital, streaming, and CD singles) from 1973 to 2019, revealing the rise of digital and the resurgence of vinyl. Built with React and D3 v7, it uses `d3.stack` and `d3.area` to render the layers, with `d3.schemeTableau10` for colors and hover interactions to highlight individual formats. Data is parsed from a semicolon-delimited CSV through `d3.dsv`, converting European decimal commas. The chart animates on load with D3 transitions and includes interactive legend and tooltip elements for exploration.
AI-generated descriptionMusic Format Evolution Chart
An interactive stacked area chart visualizing the evolution of music formats from 1973 to 2019.
Features
- 📊 Stacked Area Chart: Visualizes multiple music formats over time
- 🎨 Interactive Visualization: Hover over areas to highlight specific formats
- 📱 Responsive Design: Adapts to different screen sizes
- ✨ Smooth Animations: Animated area transitions on load
- 🎯 Legend Interaction: Click legend items to focus on specific formats
- 🌈 Color-coded: Each format has a distinct color for easy identification
Data
The chart displays data from data.csv showing units sold
for various music formats (CD, CD Single, etc.) from 1973
to 2019.
Technologies
- React 19
- D3.js 7
- CSS3
How to Use
- The chart automatically loads and parses the CSV data
- Hover over areas to highlight specific formats
- Click on legend items to focus on that format
- The chart is fully responsive and resizes with the window
Data Format
The CSV file should include:
Format: Music format type (e.g., CD, CD Single)Year: Year of dataValue (Actual): Units sold (European decimal format with comma)