Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_q3.2

Public visualization

Viewing a saved revision (read-only)

35bbf53c3a4b4620afbc5eb4ab100b7b

Activity6_q3.2

0 stars0🌍 Public
YYeruva Snehith Reddy
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.