🌍 Public
Viewing a saved revision (read-only)
a36318c8950348a3b6e51b8880e0bf7c
Making a Scatter Plot
This example renders the Iris dataset as a scatter plot using React components and D3 scales. The visualization displays sepal width on the x-axis and sepal length on the y-axis, with each data point represented as a rectangle mark. The code constructs axes using D3’s `scaleBand` and `scaleLinear`, formats tick labels with `format`, and loads data via D3’s `csv` utility. SVG rendering is handled through React, with styling applied via CSS classes.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!