Skip to main content
100%

BarChartTest

✓ Published0🌍 Public
TTDissaux
Last edited Jan 30, 2021
Created on Jan 30, 2021

This example shows the population of countries and territories worldwide using a horizontal bar chart rendered as SVG. Each bar’s length encodes the population value, scaled linearly from zero to the maximum, while the vertical positions of bars are determined by a band scale across country names. The visualization is built entirely with D3 v5 APIs, including `scaleLinear`, `scaleBand`, `csv`, and `select`, and it draws rectangles directly via `svg.selectAll('rect')`. Data is loaded from a CSV file, with population figures multiplied by 1000 before rendering.

AI-generated description
MIT Licensed

Similar vizzes