Skip to main content
100%

Fork of Fork of Stylized Scatter Plot with Color Legend

✓ Published0🌍 Public
Ssaiteja0725
Last edited Mar 7, 2022
Created on Mar 7, 2022

This stylized scatter plot visualizes the Iris dataset, mapping sepal length and petal length along the axes while coloring each point by species using a categorical color scale and an accompanying legend. The SVG chart is rendered with D3 v5 and React, though the code here relies on plain D3 for axes, scales, and the legend. It uses `d3.scaleLinear` for positioning, `d3.scaleOrdinal` with `d3.schemeCategory10` for colors, and `d3.legendColor` for the legend. Axis styling is customized via CSS to hide the domain and adjust tick and label appearance.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes