Skip to main content
100%

Reusable D3 Scatter Plot Symbols B and W

✓ Published0🌍 Public
AAndre J Denais
Last edited May 27, 2021
Created on May 27, 2021

This reusable D3 scatter plot displays the Iris Dataset, mapping petal length and sepal length to axes while encoding species with different symbol shapes via d3.symbol and scaleOrdinal. The plot uses d3.scaleLinear for both axes, d3.axisLeft and d3.axisBottom for ticks, and a join pattern in SVG. It is configured through a chainable scatterPlot function that accepts data, accessors, and margin settings, making it adaptable for other datasets.

AI-generated description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes