Skip to main content
100%

Reusable Scatter Plot

✓ Published0🌍 Public
Ssravya010
Last edited Mar 28, 2026
Created on Mar 28, 2026

This reusable chart displays song data from a Spotify CSV, plotting energy against danceability as colored circles. It demonstrates a flexible D3 architecture where a scatter plot and a pie chart are built as modular functions with getter/setter methods for configuration. The code uses d3.csv for data loading, scaleLinear, extent, axisLeft, and axisBottom for scales and axes, and d3.pie for the pie chart. SVG rendering renders both visualizations, with the pie chart categorizing tracks by popularity levels.

AI-generated description
MIT Licensed

Similar vizzes