Skip to main content
100%

Untitled

✓ Published0🌍 Public
Hharshb863
Last edited Jul 21, 2022
Created on Jul 20, 2022
Forked from Untitled

This visualization shows the population of eight countries as horizontal bars, sorted by country name, with a title indicating "Top 10 most Populous Country" though only eight are plotted. The code uses D3 v7 APIs including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `format` to load data from `data.csv`, scale population values, and render axes and rectangles in an SVG. Bars are colored individually from a fixed palette, and population values are multiplied by 1000 after parsing, with tick labels formatted in billions using the `format(".3s")` method.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes