Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Task3

Public visualization

Viewing a saved revision (read-only)

0ee7ecfc2b6147c49ee78a5220f7275e

Activity6_Task3

0 stars0🌍 Public
LLakshanya Sirigiri
Last edited Apr 6, 2025
Created on Apr 6, 2025

This example visualizes the classic Iris dataset as a scatter plot, mapping petal length and petal width onto the x- and y-axes while coloring each point by species (setosa, versicolor, virginica) using distinct fill colors. The visualization is built with D3 version 6, specifically leveraging modules such as `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and the `csv` loader to fetch and parse the dataset from a remote gist. Data points are rendered as SVG circles, with the axes and labels styled via D3’s low-level selection and appending methods. The chart dynamically sizes to the browser window using `window.innerWidth` and `window.innerHeight`.

AI-generated description