Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6_task 3

Public visualization

Viewing a saved revision (read-only)

2650c52e1b6646b4bf3719c8325124b0

Activity 6_task 3

0 stars1🌍 Public
HHarshita Vairagade
Last edited Apr 13, 2024
Created on Apr 13, 2024

This example displays the Iris dataset as a scatter plot in an SVG rendered with D3.js. It plots petal length on the x-axis and petal width on the y-axis, while encoding species types—setosa, versicolor, and virginica—through distinct fill colors (skyblue, lightgreen, and orange). The code uses `d3.csv` to load the remote dataset, `d3.scaleLinear` for both axes, and `d3.axisBottom` and `d3.axisLeft` for the tick marks. Circle positions are computed via `scaleLinear` ranges derived from the data extent, and the circles are appended dynamically using `.join('circle')`. No interactive behavior is shown.

AI-generated description

We are Displaying the IRIS dataset using Scatter plot.