Skip to main content
100%

Reusable Charts

✓ Published1🌍 Public
Aalexscott-untitled
Last edited Jul 20, 2023
Created on Jul 19, 2023
Forked from D3 Scatter Plot

This example demonstrates a reusable scatterplot component built with D3.js, visualizing the classic Iris flower dataset. It plots sepal length against petal length, with each flower represented by a circle of fixed radius. The visualization includes axes, axis labels, and a title, using D3’s scaleLinear, axisLeft, axisBottom, and csv data loading. The code implements a configurable chart function with a fluent API for setting width, height, data, value accessors, margins, and radius, highlighting the reusable pattern.

AI-generated description

A template for a scatterplot

MIT Licensed

Similar vizzes