🌍 Public
Viewing a saved revision (read-only)
e76d91d87cd940b59f39eae4a1f45ce1
Fork of Reusable scatter plot with different symbols
MMokshithabhi
Last edited May 12, 2023
Created on May 11, 2023
Forked from Reusable scatter plot with different symbols
A scatter plot visualization displays the classic Iris Dataset, with points rendered as randomly colored and sized hexagons. The example demonstrates a reusable D3 v6 approach where SVG polygons are bound to data via `selectAll` and `enter`, generating hexagon shapes with randomized sizes and colors from predefined ranges. The code shows how array methods like `map` and `join` construct the polygon points, while `Math.random` drives the dynamic style and dimension updates applied through D3 selections. The implementation runs in a vanilla HTML page using a local `d3` dependency.
AI-generated descriptionA vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.