Skip to main content
100%

scatter plot

✓ Published0🌍 Public
CChindamrohan321@gmail.com
Last edited Oct 27, 2025
Created on Oct 27, 2025

This scatter plot displays product sales versus profit, with each circle representing a product and colored by category (Electronics, Clothing, or Food). The D3.js v7 code uses `d3.scaleLinear` for both axes, `d3.scaleOrdinal` with `d3.schemeCategory10` for coloring, and SVG circles to render data points. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, with text labels for Sales and Profit. The static dataset is embedded in JavaScript and passed to a render function that clears and redraws the chart.

AI-generated description
MIT Licensed

Similar vizzes