Data Visualization - Histogram Plots of Spotify Track Dataset
This interactive histogram visualization lets users explore a Spotify track dataset by comparing the distributions of ten audio features, including popularity, energy, danceability, and tempo. Two dropdown menus select which features to plot on the x- and y-axes, while two additional menus choose musical genres to highlight in the scatterplot. The visualization renders as an SVG using D3.js v5, with React dropdown components for the menus, and includes animated transitions and tooltips. The code relies on D3 scales, axes, and the d3-legend library to display the genre colors.