Activity6-Question3
✓ Published0🌍 Public
This scatter plot visualizes product dimensions from a CSV dataset, showing product length on the x-axis and product width on the y-axis. The points are colored by category, with smart devices in red, home furnishings in blue, and kitchen appliances in dark green. The visualization loads data via `d3.csv`, scales the axes with `d3.scaleLinear`, and renders circles and axes using D3 v7’s selection and join methods. The code uses `d3.extent` to set domains and `d3.axisLeft` and `d3.axisBottom` to draw the axes, with labels for each axis.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed