ice07-reusable scatter plot
✓ Published1🌍 Public
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 descriptionMIT Licensed