Skip to main content
100%

Scatterplot Iris using different marks

✓ Published0🌍 Public
BBaptisteL54
Last edited Jan 26, 2018
Created on Jan 26, 2018

This example visualizes the classic Iris dataset as a scatterplot, mapping sepal length and width to the x- and y-axes. Each data point is rendered as a distinct SVG symbol—circle, cross, or diamond—based on the flower’s species, with color further distinguishing the three classes. The code uses d3.scaleLinear for axes, d3.scaleOrdinal for color and symbol assignment, and d3.symbol with the d3.symbols array to generate the mark paths. A legend maps species to both symbol type and color, while petal length is encoded by a square-root size scale.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/5c6d0c7d20ed65798ff42e792204a7e9'>Scatterplot Iris using different marks</a>

mit Licensed

Similar vizzes