Skip to main content
100%

Fork of Minimal Reusable Charts Pattern

✓ Published0🌍 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

Similar vizzes