Skip to main content
100%

Making a Bar

✓ Published0🌍 Public
Ppadmanabhan-rajendrakumar
Last edited Feb 9, 2020
Created on Feb 9, 2020

This example shows a static scatter plot of country populations, with each rectangle positioned using the `population` values loaded from a CSV file. The visualization uses D3 v5’s `csv` method to parse `data.csv` and scales the population numbers by a factor of 1000. The SVG canvas is selected via `select('svg')`, and rectangles are appended with `append('rect')`, though their positions and sizes are hardcoded, so they overlap at a fixed location. The `scaleLinear` and `max` imports are unused, and no axes or labels are rendered.

AI-generated description
MIT Licensed

Similar vizzes