ACTIVITY 6 QUES 3
✓ Published0🌍 Public
This scatter plot visualizes watch measurements from the Watches_new dataset, mapping strap length on the x-axis and strap width on the y-axis. Circles are colored by watch type (Analog, Smartwatch, or default) using a switch statement, while case width and case thickness are encoded via the rx and ry attributes, producing elliptical marks. The visualization is rendered as SVG using D3 v6, loading data via d3.csv from a GitHub raw URL, with scales from d3.scaleLinear, axes from d3.axisLeft and d3.axisBottom, and extents from d3.extent. It demonstrates local ES6 module imports and dynamic window sizing.
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