Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable Charts

Public visualization

Viewing a saved revision (read-only)

f40ce75cff1b4c82bd214fc278db04af

Reusable Charts

0 stars1🌍 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