Activity6_Q3
✓ Published2🌍 Public
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 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