Reusable Scatter PLot with Symbols
✓ Published0🌍 Public
This example demonstrates a reusable scatter plot that displays the Iris dataset, mapping petal length and width along the axes while encoding species with distinct symbols and colors. The chart uses d3.scaleLinear for positioning, d3.scaleOrdinal with d3.symbols to generate symbol paths, and d3.axisLeft/axisBottom for ticks. The SVG is rendered via React, and the plot is built as a configurable closure function, with hover tooltips added using SVG `<title>` elements.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed