Skip to main content
100%

D3 Interactive plot

✓ Published0🌍 Public
Vvedant74
Last edited Dec 14, 2021
Created on Dec 14, 2021
Forked from Untitled

This interactive line chart lets users explore musical trends across different artists by clicking buttons to switch datasets, which are loaded from CSV files hosted on GitHub. Built with D3.js v6, the visualization uses `d3.csv()` to fetch data and renders an SVG with a single line per playlist genre. The chart includes a color-coded legend for six genres—pop, rap, rock, latin, r&b, and edm—using an ordinal color scale. Clicking a button updates the chart by removing existing line elements and redrawing them with the new data, providing a dynamic way to compare genre patterns across artists.

AI-generated description
MIT Licensed

Similar vizzes