Skip to main content
100%

Fork of Scatter Plot - Different Dataset

✓ Published1🌍 Public
WWRCIECH
Last edited Dec 30, 2022
Created on Dec 30, 2022

This example displays the classic Iris flower dataset as an interactive scatter plot, mapping petal length against sepal width for individual data points. It uses D3 v7 to load the CSV data, construct linear scales, and render circles within an SVG container sized to the full viewport. The scatterPlot function is implemented as a reusable closure, configuring axes, margins, and point radius via method chaining. Hovering over any black circle changes its fill to red, providing simple visual feedback.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes