Skip to main content
100%

Reusable D3 Scatter Plot

✓ Published0🌍 Public
Aavvarijayakrishna99@gmail.com
Last edited Mar 12, 2023
Created on Mar 12, 2023

This reusable D3 scatter plot visualizes the Iris dataset, mapping sepal and petal measurements to x and y coordinates. The chart is rendered as an SVG using a configurable `scatterPlot` function that employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` from d3. It loads data via `d3.csv`, parses numeric fields, and draws circles with a radius of 5 pixels. The implementation uses the `join` operator for efficient element creation and updates, with margins and axes positioned dynamically.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes