Skip to main content
Public

Share visualization

Loading preview…

Activity6_Task3

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Activity6_Task3

0
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

Comments

Sign in to join the discussion.

MIT Licensed