Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Jaswanth_Assignment7_Reusable Scatter Plot

Public visualization

Jaswanth_Assignment7_Reusable Scatter Plot

0 stars2🌍 Public
JJaswanthKoorapati@my.unt.edu
Last edited Oct 26, 2025
Created on Oct 23, 2025

A reusable scatter plot displays the relationship between year and revenue using music trends data loaded from a CSV file. The chart uses D3.v7’s selection joining API (`d3.select().join()`) to build SVG axes and circles. It implements a chainable factory function with setters for width, margins, scales, labels, and dot color. Hovering a circle triggers an absolute-positioned HTML tooltip showing the data point’s label and coordinates. The axes use linear scales with integer year ticks and rotated y-axis titles.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed