Skip to main content
100%

Reusable Scatter PLot with Symbols

✓ Published0🌍 Public
Sserebryanaya.n@gmail.com
Last edited Mar 6, 2023
Created on Mar 3, 2023

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 description

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

See also React Starter.

MIT Licensed

Similar vizzes