Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ice07-reusable scatter plot

Public visualization

Viewing a saved revision (read-only)

7b0cf978d5e14857ac6a56b1a8c6c03f

ice07-reusable scatter plot

0 stars1🌍 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