Skip to main content
100%

Reusable ScatterPlot with Symbols & Axis Labels

✓ Published1🌍 Public
WWRCIECH
Last edited Dec 31, 2022
Created on Dec 31, 2022

This reusable scatter plot visualizes the Iris dataset, mapping petal length against sepal width and encoding the flower variety with different D3 symbols. Built with React and rendered as SVG, the chart uses d3.scaleLinear for axes, d3.scaleOrdinal for symbol types, and d3.axisLeft/axisBottom for ticks. It displays labeled axes and highlights points in red on hover via CSS, with the main chart logic encapsulated in a configurable scatterPlot function.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes