Skip to main content
100%

Reusable D3 scatter plot

✓ Published0🌍 Public
UUzoemeka Okechukwu Innocent
Last edited Sep 20, 2023
Created on Sep 20, 2023
Forked from D3 scatter plot

This reusable D3 scatter plot visualizes the Iris dataset, showing the relationship between petal length and sepal length for individual flowers. Built with D3 v7, it renders circles as SVG marks positioned by d3.scaleLinear scales derived from the data extents. The code uses d3.csv to load the data, d3.axisLeft and d3.axisBottom to generate axes, and d3.selectAll with data joins to bind circles. The visualization fills the entire browser window and includes a 24-pixel tick font size, making it suitable for large displays.

AI-generated description

Vanilla HTML D3 Scatter Plot With Irish Data Set,

MIT Licensed

Similar vizzes