Skip to main content
100%

Fork of ice07-reusable scatter plot

✓ Published0🌍 Public
LLaasyaJ256
Last edited Mar 29, 2026
Created on Mar 29, 2026

This reusable scatter plot visualizes retailer data, mapping Sales on the x-axis against Profit on the y-axis, with points colored by product Category using d3.scaleOrdinal and a Tableau color scheme. The code uses D3 v7 to create an SVG chart with axes, tick labels, a dashed zero-profit reference line, and an interactive tooltip triggered by mouse events. It also includes a legend and fixed plot dimensions, with data loaded from a CSV file via d3.csv and parsed with d3.autoType.

AI-generated description
MIT Licensed

Similar vizzes