Skip to main content
100%

D3 Scatter Plot

✓ Published1🌍 Public
Lliu yang
Last edited Nov 19, 2023
Created on Nov 17, 2023
Forked from HTML Starter

This example visualizes the classic Iris dataset as a scatter plot, mapping petal width to the x-axis and sepal length to the y-axis. Circles represent individual flowers, with axes labeled via D3’s `scaleLinear`, `axisLeft`, and `axisBottom` APIs. The code loads CSV data using `d3.csv`, parses numerical fields, and renders the plot as SVG circles sized with a fixed radius. The visualization fills the browser window, using viewport dimensions for the chart’s width and height, and demonstrates a straightforward data-joining workflow with `selectAll` and `join`.

AI-generated description
MIT Licensed

Similar vizzes