Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_3

Public visualization

Viewing a saved revision (read-only)

b38ce07b7b77441295a31f41c0a29f35

Activity_3

0 stars0🌍 Public
Kkaringusathwika@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024
Forked from Hello VizHub

This scatter plot visualizes the Iris dataset, showing petal length on the x-axis and petal width on the y-axis, with each point colored by species (setosa, versicolor, or virginica) using skyblue, lightgreen, and orange. The code loads CSV data via `d3.csv`, scales the axes with `d3.scaleLinear`, and renders circles as SVG elements using `d3.select` and `d3.join`. Axis labels are added with `d3.axisBottom` and `d3.axisLeft`, though the y-axis label incorrectly reads "Petal_Length" while the x-axis label says "sepal_Length".

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.