Skip to main content
100%

Solution

✓ Published0🌍 Public
CCurran Kelleher
Last edited Jan 31, 2018
Created on Jan 31, 2018

A scatter plot of the Iris dataset displays sepal length against sepal width, with points colored by species and a categorical color legend. Built as a reusable React-inspired stateless component using D3 v4, it employs `d3.scaleLinear` for axes, `d3.scaleOrdinal` and `d3.schemeCategory10` for colors, `d3.axisBottom` and `d3.axisLeft` for ticks, and `d3.legendColor` for the legend. The SVG renders responsively, sized via CSS to fill the page.

AI-generated description

An example of a Scatter Plot component using a React-inspired pattern for stateless components.

forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/298c130e67b40ed84f8c919e748d2e72'>Scatter Plot with Color Legend</a>

forked from <a href='http://bl.ocks.org/curran/'>curran</a>'s block: <a href='http://bl.ocks.org/curran/55adf7e46f4dd549d42873977d97c00f'>Responsive Scatter Plot I</a>

mit Licensed

Similar vizzes