Skip to main content
100%

DV ICE7-Reusable Scatter Plot for Iris Data

✓ Published2🌍 Public
Ppravalika.thogaru10@gmail.com
Last edited Mar 12, 2023
Created on Mar 10, 2023

This interactive scatter plot visualizes the Iris dataset, mapping petal width against sepal length across three flower species. The code uses D3 v6 APIs including `scaleLinear`, `scaleOrdinal`, `axisLeft`, `axisBottom`, and `symbol` to render distinct shapes for each species. A reusable `scatterPlot` function configures margins, data accessors, and symbol size before rendering SVG marks. The chart displays all 150 records from the imported CSV file, with axes labeled and styled using the Share Tech font.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes