Skip to main content
100%

Activity6_Q3

✓ Published2🌍 Public
Ppadiginetivishnupriya@gmail.com
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This scatter plot visualizes a fish dataset by plotting each specimen’s weight on the x-axis and height on the y-axis, with colored circles distinguishing species (Bream, Roach, Whitefish, Parkki, Perch) via a custom color lookup. The visualization loads CSV data from a GitHub repository, parses numeric fields, and uses D3’s `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` APIs to create axes and map data coordinates. Markers are drawn as SVG circles using a dataset join, while axis labels are manually positioned and rotated. The chart fills the browser window by setting its dimensions to `window.innerWidth` and `window.innerHeight`.

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