Skip to main content
100%

Ass8_task3.1

✓ Published0🌍 Public
AAbdul Kareem
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

A scatter plot visualizes the Iris dataset, mapping petal length and width to the x- and y-axes while coloring each circle by species (setosa, versicolor, or virginica). The chart loads CSV data from a GitHub repository using `d3.csv`, and applies `d3.scaleLinear` with `d3.extent` to set domains. Circles are rendered as SVG elements with `d3.selectAll` and `.join`, while `d3.axisLeft` and `d3.axisBottom` provide labeled axes with custom green text. The viewport fills the browser window using `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