Skip to main content
100%

Scatter Plot Basic

✓ Published1🌍 Public
CCameron Wehr
Last edited Sep 12, 2023
Created on Sep 12, 2023
Forked from JS packs D3

This example demonstrates a basic scatter plot using the classic Iris dataset, mapping petal length on the x-axis and sepal length on the y-axis. It renders circles as SVG elements, with axes generated via `axisLeft` and `axisBottom` from `d3.scaleLinear`. The code fetches the CSV data asynchronously, parses numeric fields, and positions each point based on computed scales. The chart fills the window, with margins and a fixed circle radius, using D3’s selection and join operations to bind data to the SVG circles.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes