Skip to main content
100%

Reusable for scatter plot

✓ Published1🌍 Public
FFrancisco Ibelles
Last edited Jun 19, 2023
Created on Jun 16, 2023

This reusable scatter plot visualizes the Iris Dataset, mapping petal length against sepal length with color-coded circular marks. Built with D3 v7, it demonstrates a modular chart factory pattern where configuration methods like `.width()`, `.data()`, and `.radius()` are chained to customize the visualization. The code uses `d3.scaleLinear` for coordinate mapping, `d3.axisBottom` and `d3.axisLeft` for axes, and renders SVG circles and groups. Data loads from a remote CSV file and is parsed with type coercion for numeric columns.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes