Skip to main content
100%

Creating scatter DV

✓ Published0🌍 Public
PPallaviManupati
Last edited Mar 6, 2022
Created on Mar 6, 2022

This example uses a D3.js v6 scatter plot to visualize the Iris Dataset, mapping petal length and petal width onto the x- and y-axes. It colors each point by species (setosa, versicolor, virginica) and uses d3.csv to load data, d3.scaleLinear for axes, and d3.axisBottom and d3.axisLeft to render them. The SVG is sized to the window, and circles are drawn with a 4-pixel radius, showing sepal measurements as extra attributes.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes