🌍 Public
Viewing a saved revision (read-only)
04d681335b9943358b818f7c40f9d013
Scatter plot
This example renders a scatter plot from CSV data fetched from a GitHub Gist via `fetch` and parsed with `d3.csvParse`. It automatically selects numeric columns for the x and y axes, with an optional categorical column mapped to colored dots. The visualization is drawn as an SVG using D3 v7, featuring labeled axes, a legend for categories when present, and a warm, minimalist styling theme. The code is designed to be adaptable, falling back to the first two numeric columns if no recognizable column names are found.
AI-generated description