Skip to main content
100%

reusable scatter plot by umesh

✓ Published1🌍 Public
Uuguggila@gitam.in
Last edited Oct 26, 2025
Created on Oct 26, 2025

This reusable scatter plot visualizes the relationship between horsepower and top speed for 150 cars, with points colored by brand category (economy, luxury, or sports). Hovering over a point reveals a tooltip with the category and axis values. Built with D3 v7, the chart uses a custom `scatterPlot()` function that accepts configurable accessors for x, y, and color values, along with axis labels. The SVG output includes gridlines, ordinal color scaling, and data loaded from a CSV via `d3.csv`, demonstrating a modular visualization pattern.

AI-generated description
MIT Licensed

Similar vizzes