Skip to main content
100%

Line Chart - Lignes ok

✓ Published2🌍 Public
EElodie31190
Last edited Dec 3, 2022
Created on Dec 3, 2022

This line chart displays the number of songs per music genre over time, with separate colored lines for Country, Pop, and Metal. The visualization uses d3.nest to group data by genre and d3.line to generate paths, with d3.scaleTime and d3.scaleLinear mapping dates and counts to SVG coordinates. It loads data from a JSON file via d3.json, which is sorted chronologically before rendering. Axes and labels are created using d3.axisBottom and d3.axisLeft, with a categorical color scale distinguishing genres.

AI-generated description
MIT Licensed

Similar vizzes