Skip to main content
100%

ice07-reusable scatter plot

✓ Published1🌍 Public
LLaasyaJ256
Last edited Mar 30, 2026
Created on Mar 23, 2026
Forked from React & D3 Starter

This interactive scatter plot visualizes retailer sales and profit data, with points colored by product category and a tooltip revealing details about each item on hover. The reusable chart function, implemented in D3 v7, accepts configurable parameters for scales, labels, and data accessors, making it adaptable to different datasets. It creates an SVG with linear axes, a dashed reference line at zero, and a legend, while the tooltip uses D3 event handlers to appear and move with the cursor.

AI-generated description
MIT Licensed

Similar vizzes