Skip to main content
100%

Fork of Reusable scatter plot with different symbols

✓ Published0🌍 Public
MMokshithabhi
Last edited May 12, 2023
Created on May 11, 2023

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 description

A vanilla HTML implementation of a D3 scatter plot. Shows the Iris Dataset.

MIT Licensed

Similar vizzes