Skip to main content
100%

activity3.1_6

✓ Published0🌍 Public
Aazeemrm630@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024

This example renders a scatter plot of the Iris dataset, showing petal length against petal width, with each point colored by species (setosa, versicolor, or virginica). The data is loaded from a GitHub-hosted CSV file using D3’s `csv` function. The visualization uses `scaleLinear` and `extent` to map values to screen coordinates, and `axisLeft` and `axisBottom` to draw axes. Circles are appended and styled via D3 selections with radii fixed at five pixels, while the code also references sepal measurements as unused properties.

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