Skip to main content
Public

Share visualization

Loading preview…

Activity_6 scatterplot tutorial color 3.1

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

Activity_6 scatterplot tutorial color 3.1

0
Mmaheshsachin1234@gmail.com
Last edited Mar 31, 2025
Created on Mar 31, 2025

This scatter plot visualizes the Iris dataset, mapping petal length and width for three species of iris flowers. The D3.js v6 code loads the data from a CSV file, scales the axes with `d3.scaleLinear`, and renders circles filled with distinct colors (skyblue, lightgreen, orange) per species. It uses the `d3.extent` and `d3.nice` functions to compute axis domains, and emits SVG axes via `d3.axisLeft` and `d3.axisBottom` with rotated axis labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed