Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE-7 Resusable Pie Chart

Public visualization

Viewing a saved revision (read-only)

7ff81e3fb4524397b30d4640bec0146a

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