Skip to main content
100%

Viz - Point - drawPoints

✓ Published0🌍 Public
NNPashaP
Last edited Jan 20, 2018
Created on Jan 20, 2018

This example renders 200 randomly generated data points as circles on an SVG canvas. Each point is colored either steelblue or red based on the parity of its key value, with a semi-transparent fill and matching stroke. The visualization is built using the `viz.point()` API, which is configured with a custom `drawPoints` function that appends circle elements to the SVG group. The code relies on D3 v4's `d3.range` and `d3.select` for data generation and DOM selection, while the rendering itself uses standard SVG `circle` elements positioned by the x and y coordinates provided by the point layout system.

AI-generated description
gpl-3.0 Licensed

Similar vizzes