🌍 Public
Viewing a saved revision (read-only)
35bbf53c3a4b4620afbc5eb4ab100b7b
Activity6_q3.2
A scatter plot displays model measurements against feature measurements for motorcycle brands Yamaha, BMW, and others, with colors distinguishing brands. The code loads CSV data via `d3.csv`, parses numeric fields, and uses `d3.scaleLinear` with `d3.extent` to map values to screen coordinates. Circles are rendered as SVG elements with fixed radius, colored by brand through a switch statement. Axes are drawn using `d3.axisLeft` and `d3.axisBottom`, with labels added as SVG text.
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.