Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6-Task3.1

Public visualization

Viewing a saved revision (read-only)

6a776657f52b4fa9ba2919ae89b3b55b

Activity6-Task3.1

0 stars0🌍 Public
Aaashishvinayvasala@gmail.com
Last edited Apr 15, 2024
Created on Apr 15, 2024

This scatter plot visualizes the Iris dataset, using petal length and width to position each of the 150 flowers. The plot colors each point by species—setosa, versicolor, and virginica—using distinct hues. Built with D3 v6, the visualization loads CSV data via `d3.csv`, encodes values with `d3.scaleLinear` and `d3.extent`, and renders axes through `d3.axisLeft` and `d3.axisBottom`. The code constructs circular marks within an SVG canvas, with a title and axis labels styled in red and green.

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.