Skip to main content
100%

Fork of Cool Art : generated line data with d3 line generator api : circle on path

✓ Published5🌍 Public
NNita
Last edited Mar 8, 2022
Created on Mar 5, 2022

This visualization generates 7,000 random coordinate pairs and renders them as a dense scatter of small circles overlaid with a single curved path connecting the same points. Using D3 v7’s `d3.line()` with `curveBasis`, the code draws a smooth line through the randomized data, while each point also appears as an individual circle with randomly generated RGB fill colors. The SVG canvas has a black background, and both the path stroke and circle fills use random values from the `Math.random()` function, creating a colorful, generative art composition with no external data source.

AI-generated description
MIT Licensed

Similar vizzes