Activity6-Question3
✓ Published0🌍 Public
This scatter plot displays product dimensions, plotting product length on the x-axis against product width on the y-axis, with colored circles indicating product categories: smart devices, home furnishings, and kitchen appliances. It loads CSV data from a GitHub repository using d3.csv, applies linear scales with d3.scaleLinear to map data values to pixel coordinates, and renders SVG circles using D3’s selection and join methods. The chart includes labeled axes created with d3.axisLeft and d3.axisBottom, with margins and a custom legend represented by the marker function.
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