Skip to main content
100%

Creating a Scatter Plot with D3.js

✓ Published0🌍 Public
SSreejaBellamkonda
Last edited Mar 7, 2022
Created on Mar 6, 2022
Forked from HTML Starter

This example visualizes the Iris flower dataset as a scatter plot, mapping petal length and width to the x- and y-axes and coloring each point by species (setosa, versicolor, and virginica). It uses D3.js v6 with SVG rendering, loading data via `d3.csv`, scaling with `d3.scaleLinear`, and adding axes with `d3.axisLeft` and `d3.axisBottom`. The code also includes custom axis labels for sepal length and petal length.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes