Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity_6 scatterplot tutorial color 3.1

Public visualization

Viewing a saved revision (read-only)

cc3429f2154b48409ec098ed57ea9e83

Activity_6 scatterplot tutorial color 3.1

0 stars0🌍 Public
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