Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6_Tutorial3.2

Public visualization

Viewing a saved revision (read-only)

6ae1acdf630249cba8d1a2a7dd3a8377

Activity6_Tutorial3.2

0 stars1🌍 Public
Kkandooriabhiram@gmail.com
Last edited Apr 1, 2025
Created on Apr 1, 2025

This scatter plot visualizes the Iris dataset, showing the relationship between sepal length and petal length for three species of iris flowers. Each species is distinguished by a unique symbol shape: circles for setosa, squares for versicolor, and triangles for virginica, with a custom legend generated by the `shapeLegend` function. The chart uses D3 v7’s `scaleOrdinal`, `scaleLinear`, and `d3.symbol` to render SVG marks, along with axes created via `d3.axisBottom` and `d3.axisLeft`. The data is loaded from a CSV file and mapped to numeric values before rendering.

AI-generated description