Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Scatter Plot

Public visualization

Viewing a saved revision (read-only)

7da50e9c5da04755985cc2d8e4dfd9b4

Scatter Plot

0 stars0🌍 Public
Aaashrithd4
Last edited Mar 27, 2022
Created on Mar 27, 2022

This example visualizes the Iris dataset using a scatter plot, mapping petal dimensions on the axes while encoding species identity through color-coded points. The chart also incorporates sepal measurements as redundant visual properties on each circle. The code loads CSV data via `d3.csv`, applies a custom row parser to convert numeric fields, and uses `d3.scaleLinear` with `d3.extent` to establish scales. Axes are rendered with `d3.axisLeft` and `d3.axisBottom`, while a `join('circle')` pattern binds data to SVG circles, with a switch statement assigning fixed colors per species.

AI-generated description

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

See also React Starter.