Skip to main content
100%

Activity6_Task3

✓ Published0🌍 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
MIT Licensed

Similar vizzes