🌍 Public
Viewing a saved revision (read-only)
3b1790195e71478eaa3fdac88a1f2644
activity_6_task# questions
This example visualizes the classic Iris dataset as a scatter plot, with petal length on the horizontal axis and sepal length on the vertical axis. Each flower’s measurements are represented as a circle, using the raw data fetched from a GitHub Gist via `d3.csv` and parsed with custom row-handling logic. The visualization leverages D3 v6’s `scaleLinear` to map data values to pixel coordinates, `axisLeft` and `axisBottom` for axes, and the `.join` operator to efficiently bind the marks to SVG circles. The chart fills the entire browser window, using `window.innerWidth` and `window.innerHeight` for sizing.
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.