Skip to main content
100%

MAking a face

✓ Published0🌍 Public
AAlex Jiasheng Ni
Last edited Jan 15, 2021
Created on Jan 15, 2021
Forked from HTML Starter

This example renders a bar chart of country populations from a CSV file, displaying each country’s population as a horizontal bar. The chart uses D3 v6’s `scaleLinear` and `scaleBand` to map population values to bar widths and country names to vertical positions, respectively. The SVG is drawn via D3’s `select` and `selectAll` methods, with data loaded asynchronously through `csv`. The population values are multiplied by 1000 during data preprocessing, and the bars are styled with a simple fill color against a white background.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes