Skip to main content
100%

Jaswanth_Assignment7_Reusable Scatter Plot

✓ Published2🌍 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
MIT Licensed

Similar vizzes