Skip to main content
100%

D3 Scatter Plot_ rendering_axis

✓ Published0🌍 Public
CChawin Sungwalngern
Last edited Dec 23, 2022
Created on Dec 23, 2022
Forked from Hello VizHub

This scatter plot visualizes the Iris Dataset, comparing petal length against sepal length across multiple flower specimens. The code uses D3 v6 to load the CSV data, apply linear scales for both axes, and render circles as SVG elements. Axis ticks are drawn explicitly using `axisLeft` and `axisBottom`, with the plot filling the full browser viewport via `window.innerWidth` and `window.innerHeight`. The example demonstrates a clean, minimal approach to building coordinate-based visualizations with D3’s data-binding and scale functions.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes