🌍 Public
Viewing a saved revision (read-only)
7b0cf978d5e14857ac6a56b1a8c6c03f
ice07-reusable scatter plot
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