Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

ICE-7 Resusable Pie Chart

Public visualization

ICE-7 Resusable Pie Chart

0 stars0๐ŸŒ Public
Mmynedisanjana@gmail.com
Last edited Mar 29, 2026
Created on Mar 29, 2026

This reusable scatter plot, titled "Song Performance Analysis," visualizes the relationship between a song's number of streams and its popularity score. Each circle represents a song, positioned by the linear scales from `d3.scaleLinear()`, with color assigned to the singer using the ordinal color scheme from `d3.scaleOrdinal`. The code loads a songs.csv dataset from a GitHub gist, converts numeric fields, and renders the chart in SVG. It constructs the visualization by merging axes, labels, and a categorical legend, all within a reusable `scatterPlot` function that accepts data and dimension parameters.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed