Skip to main content
100%

Scatter Plot

✓ Published0🌍 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.

MIT Licensed

Similar vizzes