Skip to main content
100%

bar Chart

✓ Published0🌍 Public
AAnant Agarwal
Last edited Apr 5, 2021
Created on Mar 31, 2021
Forked from HTML Starter

This bar chart displays the populations of ten countries using horizontal bars, with countries on the y-axis and population values on the x-axis. The visualization reads population data from a CSV file and renders it as an SVG. Constructed with D3 v6, the code uses scaleLinear and scaleBand for axes, axisBottom and axisLeft for orientation, and format with a custom abbreviation to show values in billions. The chart draws steelblue rectangles for bars and includes axis labels and a title.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes