Skip to main content
100%

Activity 6_Task 3

✓ Published1🌍 Public
Aanusha.chilkamarri26@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Hello VizHub

This scatterplot displays the Iris dataset’s petal length against petal width for all samples, with each point’s fill color indicating its species (setosa, versicolor, or virginica). The visualization also captures sepal dimensions as supplemental attributes on the circles, though they do not affect the positions. Using D3 v6, the code loads CSV data via `d3.csv`, applies `d3.scaleLinear` for both axes, renders SVG circles through a data join, and adds axes with `d3.axisLeft` and `d3.axisBottom`. Axis labels are drawn as rotated text, and the chart resizes to the window dimensions.

AI-generated description

Here we are generating scatterplot using Iris dataset.

MIT Licensed

Similar vizzes