Skip to main content
100%

Basic Geometries

✓ Published1🌍 Public
SShengkai10517
Last edited May 27, 2020
Created on May 27, 2020
Forked from Making a Bar Chart

This example displays a simple scatterplot-like visualization using basic SVG geometries, including squares, rectangles, and circles, rendered against a dark background. The code defines custom helper functions—`squ`, `rect`, and `cir`—to append SVG shapes, and uses D3 v5’s `select`, `csv`, `scaleLinear`, and `max` to load and process population data from `data.csv` before rendering. The visualization is drawn with SVG elements via D3’s selection API, with axis functions `axisLeft` and `axisBottom` available but not explicitly invoked.

AI-generated description
MIT Licensed

Similar vizzes