Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Minimal Reusable Charts Pattern

Public visualization

Viewing a saved revision (read-only)

a0d720c5aee345fabf6c62a64f9c7e7f

Fork of Minimal Reusable Charts Pattern

0 stars0🌍 Public
CCecilia831
Last edited Jun 6, 2021
Created on Jun 6, 2021

This fork of the Minimal Reusable Charts Pattern displays a scatter plot of the Iris Dataset, mapping sepal length to the x-axis and sepal width to the y-axis. The visualization uses D3’s `scaleLinear` and `extent` functions to compute the scales, and renders circles via SVG. It demonstrates a reusable chart module pattern, where the `scatterPlot` function exposes setters like `.data()`, `.width()`, and `.height()`. Data is loaded asynchronously from a GitHub gist using `d3.csv` and parsed with numeric coercion.

AI-generated description

A minimal scatter plot of the Iris Dataset using an adaptation of Towards Reusable Charts.

ISC Licensed