Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable scatterplot

Public visualization

Viewing a saved revision (read-only)

3a464d382a7249f4afe3784d15424a60

Reusable scatterplot

0 stars1🌍 Public
GGeorgi Dimitrov
Last edited Jul 3, 2022
Created on Jul 2, 2022
Forked from d3 scatterplot

This example demonstrates a reusable scatterplot component built with D3.js, visualizing the classic Iris dataset loaded from a CSV file. The chart plots petal length and width measurements as circles, with axes generated using D3's scaleLinear and axisLeft/axisBottom functions. The scatterPlot function exposes configurable setters for width, height, data, margins, and radius, allowing the chart to be adapted and reused. The visualization renders as SVG, sized to fill the browser window.

AI-generated description