Skip to main content
100%

ACTIVITY 6 QUES 3

✓ Published0🌍 Public
BBhavana Sharma
Last edited Apr 5, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

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 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.
MIT Licensed

Similar vizzes