Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Line Chart - Lignes ok

Public visualization

Viewing a saved revision (read-only)

45661990daac429f8c874e7cdc813879

Line Chart - Lignes ok

0 stars2🌍 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