Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Reusable D3 Scatter Plot

Public visualization

Viewing a saved revision (read-only)

78d8af559db046f8a27690f37e2d0bdf

Reusable D3 Scatter Plot

0 stars0🌍 Public
Aavvarijayakrishna99@gmail.com
Last edited Mar 13, 2023
Created on Mar 12, 2023

This reusable D3 scatter plot displays the Iris Dataset, mapping petal width to the x-axis and sepal length to the y-axis, with each of the three species represented by a distinct symbol. The chart is built using D3's `scaleLinear`, `scaleOrdinal`, `extent`, `axisLeft`, `axisBottom`, and `symbol` APIs, rendered as SVG with a configured margin and symbol size. The implementation follows the "Towards Reusable Charts" pattern, exposing a configurable `scatterPlot` function that accepts data, value accessors, and layout parameters.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.