Skip to main content
100%

Fork of Reusable D3 Scatter Plot with Symbols

✓ Published1🌍 Public
KKamilPodsiadlo
Last edited Dec 8, 2021
Created on Dec 8, 2021

This visualization renders the Iris Dataset as an interactive scatter plot, mapping petal width and sepal length along the x and y axes. It distinguishes the three flower species through different symbol shapes (circles, crosses, and diamonds) rather than colors, using d3.scaleOrdinal and d3.symbol. Built with D3 v6, the reusable scatterPlot function chains configuration methods for data, value accessors, margins, and symbol size. The SVG output includes axis labels via d3.axisLeft and d3.axisBottom, with the plot sized to fill the browser window. Data is loaded asynchronously from a remote CSV using d3.csv.

AI-generated description

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

MIT Licensed

Similar vizzes