Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Task 3 Q3

Public visualization

Viewing a saved revision (read-only)

cb9df41f0ea643ae88056af9f9f62d2c

Activity 6 Task 3 Q3

0 stars0🌍 Public
Mmounikakatipally995@gmail.com
Last edited Apr 16, 2024
Created on Apr 16, 2024

This example displays a scatter plot of iris flower measurements, showing sepal length against petal length, with species as the grouping variable. The visualization uses SVG rendering through D3 v7 modules, including `d3.scaleLinear` for axes, `d3.scaleOrdinal` with `symbolsFill` for shape encoding, and custom modules for axes and legend creation. Data is loaded from a remote CSV file and parsed with `d3.csvParse`. The code implements a reusable `scatterPlot` function that incorporates `d3.axisBottom` and `d3.axisLeft`, while a custom legend generator displays the shape categories.

AI-generated description